        :root {
            --header-bg: #004d4d;
            --header-text: #004D4D;
            --nav-bg: #003333;
            --cell-bg: #f4f4f4;
            --cell-border: #cccccc;
            --pinned-bg: #fff8e1;
            --pinned-border: #ffc107;
            --hover-bg: #e8f5e9;
            --delete-color: #ff5252;
            --empty-bg: #e2e7e8;
            --alternate-bg: #f0f0f0;
        }
        
        body, html {
            height: 100%;
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
            color: #333;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background-color: white;
            padding: 0;
        }
        

.header-content {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 1rem 0;
          background-color: #004d4d
        }

        
       
        .logo {
          display: flex;
          align-items: center;
          gap: 0.75rem;
        }

        .logo img {
          height: 40px;
        }
        
        h1 {
            color: white;
            text-align: center;
            margin: 0;
            padding: 15px 0;
            font-size: 1.5rem;
        }
        
        
        
        nav ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
        }
        
        nav ul li {
            margin: 0 15px;
        }
        
        nav ul li a {
            color: white;
            text-decoration: none;
            font-size: 16px;
            padding: 5px 0;
            display: block;
        }
        
        nav ul li a:hover {
            text-decoration: underline;
        }
        
        .controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background-color: var(--nav-bg);
            color: white;
            margin: 20px 0;
        }
        
        button {
            padding: 8px 16px;
            background-color: var(--header-bg);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
        }
        
        button:hover {
            background-color: #333;
        }
        
        .export-buttons {
            display: flex;
            gap: 10px;
            margin: 20px 0;
            justify-content: center;
        }
        
        .export-btn {
            padding: 10px 15px;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .export-btn.excel {
            background-color: #217345;
        }
        
        .export-btn.pdf {
            background-color: #006666;
        }
        
        .export-btn:hover {
            opacity: 0.9;
        }
        
        .schedule-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 1px;
            background-color: var(--cell-border);
            border: 1px solid var(--cell-border);
            margin: 20px;
        }
        .schedule h2 {
    color: #004d4d;
    padding: 10px;
    margin: 0 0 10px 0;
    background-color: rgba(0, 77, 77, 0.1);
    border-radius: 5px;
    text-align: center;
}

.schedule.alternate h2 {
    background-color: rgba(0, 77, 77, 0.15);
    
}
.schedule {
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.schedule:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
        
        .header {
            background-color: var(--header-bg);
            color: var(--header-text);
            font-weight: bold;
            padding: 12px;
            text-align: center;
            position: fixed;
            width: 100%;
            z-index: 1000;
            top: 0;
        }
        
        .time-header {
            background-color: var(--nav-bg);
            color: var(--header-text);
            font-weight: bold;
            padding: 12px;
            text-align: center;
        }
        
        .cell {
            background-color: white;
            min-height: 80px;
            padding: 8px;
            position: relative;
        }
        
        .cell.empty {
            background-color: var(--empty-bg);
            color: white;
            border: 1px dashed #cccccc;
        }
        
        .cell.pinned {
            background-color: var(--pinned-bg);
            border: 2px solid var(--pinned-border);
        }
        
        .cell-content {
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        .cell[draggable="true"] {
    cursor: move;
    user-select: none;
}

.cell.dragging {
    opacity: 0.5;
    background-color: #e0e0e0;
}
        
        .class-name {
            font-weight: 500;
            margin-bottom: auto;
            word-break: break-word;
        }
        
        .cell-actions {
            display: flex;
            justify-content: flex-end;
            gap: 5px;
            flex-wrap: wrap;
        }
        
        .cell-btn {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 12px;
            padding: 2px 5px;
            border-radius: 3px;
        }
        
        .cell:hover::after {
    content: attr(data-professor);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #004d4d;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1100;
    display: block;
}
        
        .split-groups-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 5px;
}

.split-group {
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    border-left: 3px solid #4a90e2;
    position: relative;
}

.split-group:hover::after {
    content: attr(data-professor);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #004d4d;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1100;
}

.group-name {
    font-weight: bold;
    font-size: 0.9em;
}

.group-professor {
    font-size: 0.8em;
    color: #555;
}

.cell.has-groups {
    padding: 5px;
}
        
        .pin-btn { color: #ff9800; }
        .edit-btn { color: #2196f3; }
        .delete-btn { color: var(--delete-color); }
        .duplicate-btn { color: #4caf50; }
        
        .color-picker {
            width: 20px;
            height: 20px;
            border: 1px solid #ccc;
            border-radius: 3px;
            cursor: pointer;
            padding: 0;
        }
        
        .time-edit {
            font-size: 12px;
            color: #004d4d;
            cursor: pointer;
            margin-top: 5px;
            text-decoration: underline;
        }
        
        .instructions {
            margin: 20px;
            padding: 15px;
            background-color: white;
            border: 1px solid #ddd;
        }
        
        footer {
            background-color: #333;
            color: white;
            text-align: center;
            padding: 10px;
            margin-top: 20px;
        }
        .split-group.group-conflict {
    background-color: #ffe0e0;
    border-left-color: #ff4444 !important;
}

.split-group.group-conflict .group-name {
    font-weight: bold;
    color: #d32f2f;
}
.selected-slot {
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
    position: relative;
    z-index: 10;
}

.drop-target {
    box-shadow: 0 0 0 3px rgba(66, 225, 129, 0.7) !important;
}

.dragging {
    opacity: 0.7;
}
.schedule-slot.selected-slot {
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
    position: relative;
    z-index: 10;
}

/* Estilo para alvo de drop */
.schedule-slot.drop-target {
    box-shadow: 0 0 0 3px rgba(66, 225, 129, 0.7);
}

/* Adicione ao seu CSS */
.cell.selected {
    box-shadow: 0 0 0 3px #4CAF50;
    position: relative;
    z-index: 10;
}

.cell.selected::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background-color: #4CAF50;
    border-radius: 50%;
}

#multi-select-btn.active {
    background-color: #4CAF50;
    color: white;
}

#multi-select-status {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1000;
}
.search-container {
    margin-top: 10px;
    display: flex;
    gap: 5px;
}

.highlight-professor {
    box-shadow: 0 0 0 3px #FFA500;
    position: relative;
}

.highlight-professor::after {
    content: "★";
    position: absolute;
    top: 2px;
    right: 2px;
    color: #FFA500;
    font-size: 12px;
}
/* Search results popup styles */
#search-results-popup {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#search-results-popup h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

#search-results-popup ul {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

#search-results-popup li {
    font-size: 14px;
    line-height: 1.4;
}
        @media (max-width: 768px) {
            nav ul {
                flex-direction: column;
                align-items: center;
            }
            
            nav ul li {
                margin: 5px 0;
            }
    .export-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .export-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }
    
    .controls {
        flex-wrap: wrap;
    }
    
    #clear-all-btn, #reset-btn {
        margin-top: 5px;
    }
            
            .schedule-grid {
                grid-template-columns: repeat(1, 1fr);
                margin: 10px;
            }
            .schedule.alternate {
    background-color: var(--alternate-bg);
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
}
            
            .export-buttons {
                flex-direction: column;
                align-items: center;
            }
.export-btn.png {
    background-color: #4a90e2;
}


.conflict-tooltip {
    position: absolute;
    background: #ff4444;
    color: white;
    padding: 5px;
    border-radius: 3px;
    z-index: 100;
    font-size: 12px;
}
    .conflict-highlight {
    background-color: #ffe0e0 !important;
    color: black !important;
    font-weight: bold;
    border-left: 3px solid #ff4444 !important;
    position: relative;
}

.conflict-highlight::after {
    content: "CONFLITO";
    font-size: 0.7em;
    color: white;
    background-color: #ff4444;
    padding: 2px 5px;
    border-radius: 3px;
    position: absolute;
    top: 5px;
    right: 5px;
}

/* Optional animation for extra attention */
@keyframes pulseConflict {
    0% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.3); }
    70% { box-shadow: 0 0 0 5px rgba(255, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0); }
}

/* Optional: Different style for pinned conflicts */
.conflict-highlight.pinned {
    border-left-color: #ff9900 !important;
    background-color: #fff0e0 !important;
}

/* Optional: Tooltip with conflict details */
.conflict-highlight:hover::before {
    content: attr(data-conflict-details);
    position: absolute;
    width: 200px;
    background: #ff4444;
    color: white;
    padding: 8px;
    border-radius: 4px;
    z-index: 100;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9em;
    font-weight: normal;
    pointer-events: none;
}
}

#agenda-name-box {
    position: fixed;
    left: 0; /* Alinha o box à borda esquerda da tela */
    top: 50%;
    transform: translateY(-50%);
    width: auto; /* Largura automática para ajustar ao conteúdo */
    height: auto;
    text-align: center;
    background-color: rgba(0, 77, 77, 0.9); /* Fundo com transparência */
    border-radius: 0 5px 5px 0; /* Bordas arredondadas à direita */
    padding: 10px 5px; /* Espaçamento interno */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Sutil sombra */
    z-index: 1000; /* Garante que o box esteja sempre na frente */
}

#agenda-name-text {
    display: block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 14px;
    color: white; /* Texto branco para contraste */
    font-weight: bold;
    letter-spacing: 1px; /* Espaçamento entre letras */
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 15px;
}

.zoom-controls button {
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 16px;
    cursor: pointer;
}

#zoom-level {
    min-width: 50px;
    text-align: center;
}        

