/* Modern Styles for IEA - Digitação */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

:root {
    /* Professional color palette */
    --primary-blue: #0056b3;
    --secondary-blue: #007bff;
    --light-blue: #e6f2ff;
    
    --primary-green: #28a745;
    --light-green: #e8f5e9;
    
    --dark-gray: #343a40;
    --medium-gray: #6c757d;
    --light-gray: #f8f9fa;
    --border-gray: #dee2e6;
    
    --white: #ffffff;
    --off-white: #f9f9f9;
    
    /* System variables */
    --primary-color: var(--primary-blue);
    --secondary-color: var(--primary-green);
    --text-color: #333333;
    --light-text: #666666;
    --border-color: var(--border-gray);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    --transition: all 0.2s ease-in-out;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    color: var(--text-color);
    min-height: 100vh;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 25px 30px;
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.08);
    margin-top: 25px;
    margin-bottom: 25px;
    position: relative;
    border-top: 3px solid var(--primary-blue);
}

.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.logo {
    max-width: 200px;
    height: auto;
}

h1 {
    font-family: 'Lato', sans-serif;
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 30px;
    padding-bottom: 15px;
    font-weight: 700;
    position: relative;
    font-size: 26px;
    letter-spacing: 0.5px;
}

h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-blue);
}

h2 {
    font-family: 'Lato', sans-serif;
    margin-top: 25px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    padding: 0;
    color: var(--primary-blue);
    position: relative;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h2:nth-of-type(1) {
    color: var(--primary-blue);
}

h2:nth-of-type(2) {
    color: var(--primary-green);
}

h2:nth-of-type(3) {
    color: var(--primary-blue);
}

h2:nth-of-type(4) {
    color: var(--dark-gray);
}

h2 i {
    margin-right: 8px;
    font-size: 0.9em;
}

.table-section {
    margin-bottom: 30px;
    padding: 0;
    background-color: var(--white);
    position: relative;
}

.table-section:nth-of-type(1) .section-header {
    border-left: 4px solid var(--primary-blue);
}

.table-section:nth-of-type(2) .section-header {
    border-left: 4px solid var(--primary-green);
}

.table-section:nth-of-type(3) .section-header {
    border-left: 4px solid var(--primary-blue);
}

.table-section:nth-of-type(4) .section-header {
    border-left: 4px solid var(--dark-gray);
}

.section-header {
    padding-left: 15px;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

table th, table td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid var(--border-color);
}

table td {
    color: #444;
}

table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.table-section:nth-of-type(1) table th {
    border-top: 2px solid var(--primary-blue);
}

.table-section:nth-of-type(2) table th {
    border-top: 2px solid var(--primary-green);
}

.table-section:nth-of-type(3) table th {
    border-top: 2px solid var(--primary-blue);
}

.table-section:nth-of-type(4) table th {
    border-top: 2px solid var(--dark-gray);
}

table tr:nth-child(even) {
    background-color: var(--light-gray);
}

table tr:hover {
    background-color: rgba(0, 123, 255, 0.03);
}

.enter-system {
    margin-top: 15px;
    text-align: left;
}

.btn-enter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--primary-blue);
    background-color: var(--primary-blue);
    border-radius: 3px;
}

.table-section:nth-of-type(1) .btn-enter {
    color: white;
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
}

.table-section:nth-of-type(2) .btn-enter {
    color: white;
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
}

.table-section:nth-of-type(3) .btn-enter {
    color: white;
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
}

.table-section:nth-of-type(4) .btn-enter {
    color: white;
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
}

.btn-enter:hover {
    opacity: 0.9;
    box-shadow: 0 2px 5px rgba(0, 86, 179, 0.2);
}

.table-section:nth-of-type(1) .btn-enter:hover,
.table-section:nth-of-type(2) .btn-enter:hover,
.table-section:nth-of-type(3) .btn-enter:hover,
.table-section:nth-of-type(4) .btn-enter:hover {
    opacity: 0.9;
    box-shadow: 0 2px 5px rgba(0, 86, 179, 0.2);
}

.btn-enter i {
    margin-right: 12px;
}

.btn-enter img {
    margin-right: 15px;
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.previsao-section {
    margin: 15px 0;
    padding: 15px;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
}

.previsao-section h3 {
    margin-top: 0;
    color: var(--text-color);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.previsao-links {
    list-style-type: none;
    padding: 0;
}

.previsao-links li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    padding: 6px 0;
    border-bottom: 1px dotted var(--border-color);
}

.previsao-links li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.previsao-links li:hover {
    background-color: var(--light-gray);
}

.previsao-links li {
    font-size: 16px;
}

.previsao-links i {
    font-size: 14px;
    margin-right: 8px;
    color: var(--medium-gray);
    width: 16px;
    text-align: center;
}

.previsao-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    flex: 1;
}

.previsao-links a:hover {
    color: var(--primary-blue);
}

.pmr-results {
    margin: 15px 0;
    text-align: left;
}

.pmr-results a {
    display: inline-flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.pmr-results a i {
    margin-right: 8px;
    color: var(--medium-gray);
}

.pmr-results a:hover {
    color: var(--primary-blue);
}

/* Footer styles */
#footer-secretaria {
    margin-top: 40px;
    padding: 20px 0;
    background-color: #f0f2f5;
    color: var(--text-color);
    border-top: 1px solid #e9ecef;
}

.fundo-endereco {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.margB0 {
    margin-bottom: 0;
}

.margT10 {
    margin-top: 10px;
}

.hidden-print {
    display: block;
}

#footer-secretaria strong {
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
}

#footer-secretaria address {
    line-height: 1.8;
    font-style: normal;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    table {
        font-size: 14px;
    }
    
    table th, table td {
        padding: 8px 10px;
    }
    
    .btn-enter {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-enter img {
        width: 20px;
        height: 20px;
    }
    
    .previsao-section {
        padding: 15px;
    }
    
    .previsao-links li {
        font-size: 14px;
    }
}

/* Additional styles for better appearance */
.highlight {
    background-color: rgba(251, 188, 5, 0.1);
    border-left: 3px solid var(--accent-color);
}

/* Add some animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.table-section {
    animation: fadeIn 0.5s ease-out;
}
