@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html {
    font-family: 'Poppins', sans-serif;
    font-size: medium;
}

body {
    font-family: 'Poppins', sans-serif; /* Ensure inheritance */
    margin: 0;
    padding: 0;
    background-color: #f4f7f6; /* Lighter, more opaque background than #ffffff94 for overall page */
    color: #333; /* Default text color for body */
    line-height: 1.6;
}

/* General Container Style (Applied to .main or specific content wrappers) */
.content-container {
    max-width: 960px;
    margin: 30px auto; /* Adjusted margin */
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
    width: 100%; /* Keep full width for main nav bar */
    /* height: auto; Remove fixed height, let padding define it */
    padding: 15px 0; /* Adjusted padding */
    background-color: #00324d;
    background-image: url("https://www.transparenttextures.com/patterns/dark-tire.png");
    background-size: contain;
    color: #ffffff;
    display: flex;
    justify-content: space-around; /* Adjust as needed */
    align-items: center;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */ /* Optional: shadow for header if not flush */
}

.header > img {
    height: 80px; /* Adjusted size */
}

.header-left {
    /* width: 30vw; Remove fixed width, let content dictate or use flex-grow */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 30px; /* Add some padding */
}

.header-right {
    /* width: 70vw; */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 30px; /* Add some padding */
}

.header-left > img {
    height: 40px; /* Adjusted size */
    margin-right: 15px; /* Spacing */
}

.header-right > img {
    height: 15px; /* Keep small */
    margin-left: 15px; /* Spacing */
    background: #ffffff;
    border-radius: 100%;
    padding: 8px;
}

.header-right > a {
    text-decoration: none;
    font-weight: 700; /* Slightly less bold */
    color: #fff;
    padding: 8px 15px; /* Adjusted padding */
    border-radius: 6px;
    margin-left: 15px; /* Spacing */
    transition: background-color 0.3s ease;
}

.header-right > a:hover {
    background-color: #00649a; /* Target hover */
}

/* Menu */
.menu {
    width: 100%; /* Full width menu bar */
    background: #ffffff; /* Solid white or light gray */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Softer shadow */
    padding: 10px 0;
}

.menu > ul {
    /* width: 90vw; /* Adjust to max-width or remove for centering */
    max-width: 960px; /* Center menu items within a common width */
    margin: 0 auto;
    padding: 0; /* Remove default ul padding */
    list-style: none; /* Remove bullets */
    display: flex; /* Use flex for horizontal items */
    justify-content: center; /* Or flex-start */
    align-items: center;
}

.menu > ul > li {
    display: inline-block; /* Keep, or rely on flex from ul */
    margin-right: 20px; /* Adjusted spacing */
}

.menu > ul > li:last-child {
    margin-right: 0;
}

.menu > ul > li > a {
    text-decoration: none;
    font-weight: 600; /* Adjusted weight */
    color: #00324D; /* Darker color for links on light bg */
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu > ul > li > a:hover {
    background-color: #00324d;
    background-image: url("https://www.transparenttextures.com/patterns/dark-tire.png");
    background-size: contain;
    color: #ffffff; /* White text on hover */
}

/* Main Content Area - Adapt to be like .container */
.main {
    /* Apply .content-container style here or wrap .main's content with it */
    max-width: 960px;
    margin: 30px auto;
    background-color: #fff; /* Was #f0ffffae */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    /* display: flex; */ /* Remove flex if simple block flow is enough */
    /* justify-content: center; */
    /* align-items: center; */
    /* flex-direction: column; */
}

.top { /* This might be a sub-header within .main */
    width: 100%;
    padding: 15px;
    background: #e9ecef; /* Light gray, similar to feature cards */
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin-bottom: 20px; /* Space below */
    border-radius: 6px;
}

/* Left/Right split inside .main - if this is still a desired layout */
.content-split { /* You might need a wrapper div with this class */
    display: flex;
    gap: 20px; /* Space between left and right */
}

.left {
    /* width: 20vw; Use flex-basis or percentage for responsiveness */
    flex: 1; /* Example: takes 1 part of available space */
    /* height: auto; */ /* min-height: 70vh; Removed fixed/viewport heights */
    display: flex;
    justify-content: center;
    align-items: center; /* Or flex-start */
    flex-direction: column;
    padding: 20px;
    background-color: #f8f9fa; /* Very light gray if distinct from .main */
    border-radius: 6px;
}

.left > h2 {
    color: #00324D;
    font-size: 1.5em; /* Adjusted size */
    text-align: center;
}

.left > h2 > span {
    color: #00649a;
    font-size: 1em; /* Relative to parent h2 */
}

.left-image {
    width: 100%; /* Make image responsive within its container */
    max-width: 200px; /* Example max size */
    height: auto;
    margin-top: 15px;
}

.right {
    /* width: 80vw; */
    flex: 3; /* Example: takes 3 parts of available space */
    /* height: auto; */
    display: flex;
    justify-content: center;
    align-items: center; /* Or flex-start for forms */
    padding: 20px;
}

.right > form {
    width: 100%;
}

/* Card Style - to look like .feature */
.card {
    width: 100%; /* Take full width of its parent (e.g., a column in a grid) */
    display: block; /* Remove flex if content flows naturally */
    background: #e9ecef; /* Target feature background */
    padding: 25px; /* Target feature padding */
    border-radius: 6px; /* Target feature radius */
    border-left: 5px solid #00649a; /* Target feature border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Softer shadow */
    margin-bottom: 20px; /* Space between cards */
    text-align: left; /* Usually features have left-aligned text */
}

.card > h2, .card > h3 { /* Adapt h2 to h3 if that's the target */
    color: #00324D; /* Target feature h3 color */
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
}
.card p { /* Assuming paragraphs might be in cards */
    color: #00649a; /* Target feature p color */
}


/* Form Fields */
.textfield, .timefield { /* Consolidate field wrapper styles */
    width: 100%;
    margin-bottom: 20px; /* Space between fields */
}

.textfield > input,
.textfield > select,
.timefield > input {
    width: 100%;
    border: 1px solid #ced4da; /* Standard border */
    border-radius: 6px;
    padding: 12px 15px; /* Comfortable padding */
    background: #f8f9fa; /* Light background for inputs */
    color: #495057; /* Darker input text */
    box-shadow: none; /* Remove previous shadow */
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}
.textfield > input:focus,
.textfield > select:focus,
.timefield > input:focus {
    border-color: #00649a; /* Accent color on focus */
}

.textfield > label,
.timefield > label {
    color: #00324D; /* Darker label */
    margin-bottom: 8px; /* Space below label */
    font-weight: 500;
    display: block; /* Make labels block for better spacing */
}

.timefield {
    display: flex;
    gap: 10px; /* Space between time inputs if they are side-by-side */
}
.timefield > input {
    width: 48%; /* If two inputs side-by-side */
}
/* .timefield > .space { display: none; } Remove spacer if using gap */


.filterfield {
    width: 100%;
    display: flex;
    justify-content: flex-start; /* Or space-between */
    align-items: center; /* Align items vertically */
    margin: 20px 0; /* Vertical margin */
    gap: 15px; /* Space between filter elements */
}

.filterfield > input[type="submit"], /* Assuming it's a submit button */
.filterfield > input[type="button"] {
    /* Apply general button style, defined later */
    padding: 12px 20px; /* Specific padding for filter buttons */
    /* width: auto; Let content define width or set a flex-basis */
    flex-basis: 30%; /* Example width */
}

.filterfield > select {
    /* width: 30%; */
    flex-basis: 30%; /* Example width */
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 12px 15px;
    background: #f8f9fa;
    color: #495057;
    box-shadow: none;
    outline: none;
    box-sizing: border-box;
}

.profSubsCheckbox, .checkfield { /* Styles for checkbox areas */
    width: 100%;
    margin: 15px 0;
    display: flex;
    align-items: center; /* Align checkbox with label */
    gap: 10px;
}
.profSubsCheckbox > input[type="checkbox"],
.checkfield > input[type="checkbox"] {
    margin-right: 8px; /* Space between checkbox and label */
    /* Consider custom checkbox styles for better look */
    height: 18px; width: 18px;
}
.profSubsCheckbox > label,
.checkfield > label,
.checkfield > span {
    color: #333;
    font-weight: normal;
}


/* General Button Styles (like .download-button) */
.btn, .btn-google, .btn-save, .btn-add, .btn-dash, .btn-cancel, .btn-confirm, .btn-nao,
.btn-addCurso, .btn-edit, .btn-delete, .btn-cancel-excluir, .btn-confirmar-excluir, .btn-saveCurso,
.btn-addTurma, .btn-saveTurma, .btn-addProfessor, .btn-saveProfessor {
    display: inline-block;
    padding: 10px 20px; /* Adjusted padding */
    background-color: #00324d;
    background-image: url("https://www.transparenttextures.com/patterns/dark-tire.png");
    background-size: contain;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1em; /* Unified font size */
    text-transform: uppercase;
    letter-spacing: 1px; /* Reduced letter spacing */
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    margin: 5px; /* Add small margin for spacing if buttons are adjacent */
}

.btn:hover, .btn-save:hover, .btn-add:hover, .btn-dash:hover, .btn-confirm:hover,
.btn-addCurso:hover, .btn-edit:hover, .btn-delete:hover, .btn-confirmar-excluir:hover, .btn-saveCurso:hover,
.btn-addTurma:hover, .btn-saveTurma:hover, .btn-addProfessor:hover, .btn-saveProfessor:hover {
    background-color: #00649a; /* Lighter blue on hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Button variations */
.btn-cancel, .btn-nao, .btn-cancel-excluir {
    background-color: #e9ecef; /* Light gray for cancel/secondary actions */
    color: #00324D; /* Dark text */
    border: 1px solid #ced4da; /* Subtle border */
}
.btn-cancel:hover, .btn-nao:hover, .btn-cancel-excluir:hover {
    background-color: #d3d9df; /* Darker gray on hover */
}

.btn-google {
    background-color: #fff;
    color: #444;
    border: 1px solid #ccc;
    padding-left: 48px; /* Keep if icon is used */
    background-image: url("../static/google.jpg"); /* Ensure path is correct */
    background-position: 15px center; /* Adjust icon position */
    background-size: 24px 24px; /* Adjust icon size */
    background-repeat: no-repeat;
}
.btn-google:hover {
    background-color: #f8f8f8;
    border-color: #bbb;
}

/* Specific button widths - try to use auto or flex for responsiveness */
.btn-add, .btn-dash {
    width: auto; /* min-width: 35%; */ /* Avoid fixed percentage width if possible */
    padding: 12px 20px;
}
.btn-addCurso, .btn-addTurma, .btn-addProfessor {
     width: auto; /* min-width: 75%; */
     padding: 14px 24px;
     margin: 10px auto; /* Center if it's a block element */
     display: block; /* If it should take its own line */
}


/* Footer */
.footer {
    width: 100%;
    text-align: center;
    padding: 25px 20px; /* Increased padding */
    background-color: #00324d;
    background-image: url("https://www.transparenttextures.com/patterns/dark-tire.png");
    background-size: contain;
    color: white;
    /* border-radius: 0 0 8px 8px; */ /* Only if it's at the bottom of a container */
    margin-top: 40px; /* Space above footer */
}

.footer > .about {
    /* width: 85vw; Removed, let content center or use max-width */
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-bottom: 50px; /* Space below paragraph */
}

.footer > .about p {
    margin: 0;
    font-size: small;
    text-align: center;
}

.footer > img { /* Assuming this is a logo in the footer */
    height: 30px; /* Adjusted size */
    margin: 0 15px; /* Vertical margin 0 if aligned with text */
}

.footer a {
    color: #ffffff; /* White links in footer */
    font-weight: 600;
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #90a2ac; /* Lighter color on hover */
    text-decoration: underline;
}

/* Modals */
.back, .backCurso, .backEditarCurso, .backExcluirCurso,
.backTurma, .backEditarTurma, .backExcluirTurma,
.backProfessor, .backEditarProfessor, .backExcluirProfessor {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Darker, more standard overlay */
    z-index: 100; /* Lower z-index for backdrop */
    display: none;
}

.modal-addCurso, .modal-editarCurso, .modal-excluirCurso,
.modal-addTurma, .modal-editarTurma, .modal-excluirTurma,
.modal-addProfessor, .modal-editarProfessor, .modal-excluirProfessor,
.register, .confirm {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 500px; /* Max width for modals */
    background: #fff; /* White background */
    color: #333; /* Dark text */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15); /* Standard shadow */
    padding: 25px 30px; /* Comfortable padding */
    border-radius: 8px;
    z-index: 101; /* Above backdrop */
    display: none; /* JS controls visibility */
    /* border-left: 10px solid #00649a; Removed, or use border-top for accent */
    border-top: 5px solid #00649a; /* Accent on top */
    text-align: left; /* Default text align for modals */
}
.modal-excluirCurso, .modal-excluirTurma, .modal-excluirProfessor {
    max-width: 400px; /* Smaller modals for confirmation */
    text-align: center; /* Center text for confirmation */
}
.modal-excluirCurso hr, .modal-excluirTurma hr, .modal-excluirProfessor hr {
    border: none; /* Remove hr if not needed, or style as 1px solid #eee */
    height: 1px;
    background-color: #eee;
    margin: 20px 0;
}


/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #00324D; /* Default heading color */
    margin-top: 0; /* Remove default top margin for better control */
    margin-bottom: 0.5em; /* Consistent bottom margin */
    font-weight: 700; /* Default bold for headings */
}
/* Example specific heading style from target */
header h1 { /* If you have a specific site title header */
    color: #00324D; /* Or #ffffff if on dark background */
    font-size: 2.5em;
    margin-bottom: 10px;
}

header h4 { /* If you have a specific site title header */
    color: #fff; /* Or #ffffff if on dark background */
}

.main h4 { /* Specific context */
    font-weight: 700; /* Was 800 */
    color: #00649a;
    text-transform: uppercase;
}
h5 {
    font-weight: 600; /* Was bolder */
    color: #0C0C0C; /* Very dark gray - consider #333 for consistency */
}
.sign-in h6, .toggle-container h6 {
    color: #333; /* Or #00324D */
    font-size: 1.1em; /* Was medium */
    margin: 10px 0;
    font-weight: 600;
}
.toggle-container p {
    font-size: 0.9em; /* Was small */
    color: #555; /* For less important text */
    margin-bottom: 15px;
}
.toggle-container {
    padding: 25px;
    /* background: linear-gradient(to right, #00649a, #00324D); Darker gradient */
    /* color: #fff; */
    /* ... other toggle container styles need to be adapted based on the new theme */
}


/* Table Styles */
.classes, .perfil, .chart { /* Wrappers for sections, apply content-container style or nest */
    /* these might become .content-container themselves or be placed inside one */
    margin-bottom: 30px;
}
.dynamic { /* Table container */
    width: 100%;
    overflow-x: auto; /* For responsive tables */
    border: 1px solid #dee2e6; /* Border around table */
    border-radius: 6px;
}
.row {
    width: 100%;
    display: flex;
    border-bottom: 1px solid #dee2e6; /* Row separator */
}
.row:last-child {
    border-bottom: none;
}
.row:nth-child(even) {
    background-color: #f8f9fa; /* Light gray for even rows */
}
.row:nth-child(odd) {
    background-color: #fff; /* White for odd rows */
}
.col {
    flex: 1; /* Distribute space equally */
    padding: 12px 15px; /* Cell padding */
    display: flex;
    /* justify-content: center; */ /* Usually left for table data */
    align-items: center;
    color: #333; /* Darker text */
    text-align: left;
}
.dynamic a {
    text-decoration: none;
    font-weight: 600; /* Was 800 */
    color: #00649a;
    transition: color 0.3s ease;
}
.dynamic a:hover {
    color: #00324D;
    text-decoration: underline;
}
.topicoTabela { /* Table header row style */
    background-color: #e9ecef; /* Header background */
    font-weight: bold;
    color: #00324D;
}
.topicoTabela .col { /* Cells in header row */
    font-weight: bold; /* Ensure text is bold */
}

/* Table specific column adjustments */
.colunaTabela { /* If this is meant for a specific column type */
    /* text-align: left; */ /* Already default for .col */
    /* width: 80%; Remove fixed width, use flex properties on .col */
    flex-grow: 3; /* Example: make this column wider */
    padding-left: 20px; /* Adjusted padding */
}
.buttonfieldTabela {
    /* width: 30%; */
    flex-grow: 1; /* Example width for action buttons column */
    justify-content: flex-end; /* Align buttons to the right */
    gap: 5px; /* Space between buttons in the cell */
}
.buttonfieldTabela .btn-edit, .buttonfieldTabela .btn-delete {
    padding: 6px 10px; /* Smaller buttons for tables */
    font-size: 0.85em;
}

/* Status Indicators */
.livre, .assumida {
    padding: 6px 12px;
    margin: 0;
    border-radius: 100px; /* Pill shape */
    font-size: 0.85em;
    font-weight: 600;
    text-align: center;
}
.livre {
    background-color: #e6ffed; /* Light green */
    color: #00875a; /* Dark green */
    border: 1px solid #00875a;
}
.assumida {
    background-color: #e9ecef; /* Light gray */
    color: #555; /* Dark gray */
    border: 1px solid #adb5bd;
}

/* Social Icons */
.social-icons {
    margin: 20px 0; /* Adjust spacing */
    text-align: center; /* Center icons if they are in a block */
}
.social-icons a {
    color: #00324D;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Softer shadow */
    border-radius: 6px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px; /* Adjusted padding */
    text-decoration: none;
    width: 240px; /* Square buttons */
    height: 40px;
    margin: 0 5px; /* Space between icons */
    transition: background-color 0.3s ease, color 0.3s ease;
}
.social-icons a:hover {
    background-color: #00324d;
    background-image: url("https://www.transparenttextures.com/patterns/dark-tire.png");
    background-size: contain;
    color: #fff;
}

/* Loading Spinner */
.loading {
    display: none;
    position: fixed; /* Use fixed to cover viewport */
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Lighter overlay for loading */
    z-index: 2000; /* Highest z-index */
}
.loading > img {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 50px; /* Slightly larger spinner */
}

/* Vincular Professor Form */
.vincular_professor_form {
    margin-top: 20px;
    width: 100%;
}
.vincular_professor_select select { /* Target the select element itself */
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 12px 15px;
    background: #f8f9fa;
    color: #495057;
    outline: none;
}
.btn-desvincular {
    background-color: #fdecea; /* Light red */
    color: #c53030; /* Dark red */
    border-radius: 4px;
    border: 1px solid #c53030;
    padding: 4px 8px; /* Smaller button */
    font-size: 0.8em; /* Smaller font */
    font-weight: 600;
    margin: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-desvincular:hover {
    background-color: #c53030;
    color: #fff;
}


/* Cleanup old/unused styles if any. For example: */
/* .header > img (if .header-left/right > img covers it) */
/* .form, .formExcluir, .login (if covered by general .main or modal styles) */