:root {
    --primary-color: #00a7e1; /* Azul LCSI */ 
    --dark-blue: #041e42;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --border-color: #e0e0e0;
}

.header-text {
    color: #ffffff; 
    font-weight: bold;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--light-gray);
    color: #333;
    line-height: 1.6;
}

.mensagem {
    margin: 20px auto;
    padding: 10px;
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    width: 90%;
    text-align: center;
    border-radius: 5px;
}


/* Header */
header {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    height: 40px;
}

.contact-info {
    font-size: 14px;
}

.contact-info span {
    margin-right: 15px;
}

.user-menu {
    display: flex;
    align-items: center;
}

.welcome-text {
    margin-right: 15px;
    font-size: 14px;
}

.logout-btn {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background-color: var(--white);
    color: var(--dark-blue);
}

/* Main Content */
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.main-title {
    color: var(--dark-blue);
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.sub-title {
    color: var(--primary-color);
    font-size: 18px;
}

/* Filter Options */
.filter-container {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-title {
    font-size: 18px;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.filter-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.filter-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.filter-btn:hover {
    background-color: var(--dark-blue);
}

.reset-btn {
    background-color: #6c757d;
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.reset-btn:hover {
    background-color: #495057;
}

/* Table */
.table-container {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 15px;
    text-align: left;
    position: relative;
}

th.sortable {
    cursor: pointer;
}

th.sortable:hover {
    background-color: #00a7e1;
    
}

th.sortable a {
    text-decoration: none;
    color: inherit;
}

th.sortable a:hover {
    text-decoration: underline;
    color: #00a7e1;
}

.sort-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
}

.sort-icon.asc {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--white);
}

.sort-icon.desc {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--white);
}

tbody td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: rgba(0, 167, 225, 0.05);
}

.download-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.download-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.download-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background-color: var(--dark-blue);
}

.delete-btn {
    display: inline-block;
    background-color: #6c757d;
    color: var(--white);
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.delete-btn:hover {
    background-color: rgb(250, 0, 0);
}

/* Login specific */
.login-container {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.login-btn {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-btn:hover {
    background-color: var(--dark-blue);
}

.error-message {
    color: #e74c3c;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 30px;
    font-size: 16px;
    color: #6c757d;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .contact-info span {
        display: block;
        margin-bottom: 5px;
    }
    
    .user-menu {
        margin-top: 10px;
        justify-content: center;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
    
    .filter-options {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .login-container {
        padding: 20px;
    }
}