/* ============================================================
   CRONOGRAMA — Modern Weekly Planner
   ============================================================ */

/* ---- Page Header ---- */
.crono-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.crono-title {
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.crono-title i {
    color: var(--secondary);
}

.crono-subtitle {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
}

.crono-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.btn-add-session {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 10px;
    background: var(--secondary, #0284c7);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.btn-add-session:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1.5px solid #fecaca;
    border-radius: 10px;
    background: #fff5f5;
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.btn-clear-all:hover {
    background: #fee2e2;
    transform: translateY(-1px);
}

/* ---- Stats Row ---- */
.crono-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.crono-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.crono-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.crono-stat-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.crono-stat-val {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1;
}

.crono-stat-lbl {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* ---- Week Navigation ---- */
.crono-week-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.week-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.week-nav-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.week-label-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    min-width: 200px;
    justify-content: center;
}

.today-pill {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    border: 1.5px solid var(--secondary);
    color: var(--secondary);
    background: #eff6ff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.2s;
}

.today-pill:hover {
    background: var(--secondary);
    color: #fff;
}

/* ---- Days Grid ---- */
.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

/* ---- Day Card ---- */
.day-card {
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #f1f5f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    min-height: 240px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.day-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.day-card.today {
    border-color: #bfdbfe;
    box-shadow: 0 0 0 2px #bfdbfe, 0 4px 20px rgba(2, 132, 199, 0.1);
}

.day-card-header {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.day-card.today .day-card-header {
    background: linear-gradient(135deg, #0284c7, #0369a1);
}

.day-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.day-card.today .day-name {
    color: rgba(255, 255, 255, 0.9);
}

.day-date {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-left: auto;
}

.day-card.today .day-date {
    color: rgba(255, 255, 255, 0.7);
}

.today-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.day-count {
    font-size: 0.7rem;
    color: var(--gray-400);
    background: #f1f5f9;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    white-space: nowrap;
}

.day-card.today .day-count {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* ---- Blocks inside day ---- */
.day-blocks {
    flex: 1;
    padding: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow-y: auto;
    max-height: 340px;
}

.day-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #d1d5db;
    font-size: 0.78rem;
    padding: 1.5rem 0.5rem;
    text-align: center;
}

.day-empty i {
    font-size: 1.2rem;
    opacity: 0.5;
}

/* ---- Study Block Row ---- */
.study-block {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
    padding: 0.5rem 0.6rem;
    transition: background 0.15s;
}

.study-block:hover {
    background: #f1f5f9;
}

.block-main {
    flex: 1;
    min-width: 0;
}

.block-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.block-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.2rem;
    flex-wrap: wrap;
}

.block-type {
    font-size: 0.68rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.9;
}

.block-time {
    font-size: 0.68rem;
    color: var(--gray-400);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.block-desc {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.block-delete {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.block-delete:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* ---- Add button per day ---- */
.day-add-btn {
    margin: 0.5rem 0.625rem 0.625rem;
    padding: 0.45rem;
    border-radius: 8px;
    border: 1.5px dashed #e2e8f0;
    background: transparent;
    color: var(--gray-400);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.day-add-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: #eff6ff;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalSlideIn 0.2s ease;
}


@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3 i {
    color: var(--secondary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f1f5f9;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.modal-close:hover {
    background: #e2e8f0;
}

.modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-intro {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0 0 1.25rem 0;
    line-height: 1.6;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ---- Form elements ---- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.875rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: 0.875rem;
    color: var(--gray-800);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

.req {
    color: #ef4444;
    font-weight: 700;
}

.optional {
    font-weight: 400;
    color: var(--gray-400);
    font-size: 0.75rem;
}

/* ---- Type Chips in form ---- */
.type-chips-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.type-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.875rem;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: var(--gray-500);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.type-chip[data-type="teoria"].active   { background: #eff6ff; border-color: #3b82f6; color: #3b82f6; }
.type-chip[data-type="pratica"].active  { background: #f0fdf4; border-color: #10b981; color: #10b981; }
.type-chip[data-type="revisao"].active  { background: #fffbeb; border-color: #f59e0b; color: #d97706; }
.type-chip[data-type="analise"].active  { background: #faf5ff; border-color: #8b5cf6; color: #8b5cf6; }

.type-chip:hover:not(.active) {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

/* ---- Modal Buttons ---- */
.btn-modal-cancel {
    padding: 0.6rem 1.2rem;
    border-radius: 9px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-modal-cancel:hover {
    background: #f8fafc;
}

.btn-modal-save {
    padding: 0.6rem 1.5rem;
    border-radius: 9px;
    border: none;
    background: var(--secondary, #0284c7);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.2s;
}

.btn-modal-save:hover { opacity: 0.9; }
.btn-modal-save:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---- AI Session Button (header) ---- */
.btn-ai-session {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.btn-ai-session:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ---- Wide modal box ---- */
.modal-box-wide {
    max-width: 600px;
}

/* ---- AI Time slot rows ---- */
.ai-slots-header {
    display: grid;
    grid-template-columns: 1fr 100px 100px;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    margin-bottom: 0.3rem;
    padding: 0 0 0 0.1rem;
}

.ai-slot-row {
    display: grid;
    grid-template-columns: 1fr 100px 100px 34px;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ai-slot-remove {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid #fecaca;
    background: #fff5f5;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: background 0.15s;
}

.ai-slot-remove:hover { background: #fee2e2; }

.btn-add-slot {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.875rem;
    border-radius: 8px;
    border: 1.5px dashed #bfdbfe;
    background: transparent;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-top: 0.25rem;
}

.btn-add-slot:hover {
    border-color: var(--secondary);
    background: #eff6ff;
}

/* ---- AI Subject tags ---- */
.ai-subject-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.6rem;
}

.ai-subject-input-row .form-control { flex: 1; }

.btn-add-tag {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: var(--secondary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.btn-add-tag:hover { opacity: 0.85; }

.ai-subjects-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ai-subject-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 0.8rem;
    font-weight: 600;
}

.ai-subject-tag button {
    background: none;
    border: none;
    cursor: pointer;
    color: #93c5fd;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.ai-subject-tag button:hover { color: #1e40af; }

/* ---- AI Type checkboxes ---- */
.ai-type-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ai-type-check-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.875rem;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.ai-type-check-label:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.ai-type-check-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--secondary);
    cursor: pointer;
}

.ai-type-chip-preview {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ---- AI Generate button variant ---- */
.btn-ai-generate {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}


/* ---- Toast ---- */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.1rem;
    border-radius: 12px;
    background: var(--gray-800, #1e293b);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s, transform 0.25s;
    min-width: 240px;
    max-width: 360px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success { background: #059669; }
.toast-error   { background: #dc2626; }
.toast-info    { background: #0284c7; }

/* ---- Empty state ---- */
.crono-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 2rem;
    background: #fff;
    border-radius: 18px;
    border: 2px dashed #e2e8f0;
    color: var(--gray-400);
}

.crono-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #cbd5e1;
}

.crono-empty-state h3 {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin: 0 0 0.5rem 0;
}

.crono-empty-state p {
    font-size: 0.875rem;
    margin: 0 0 1.5rem 0;
    color: var(--gray-400);
}

/* ---- Day expand button ---- */
.day-expand-btn {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
    margin-left: 2px;
}

.day-expand-btn:hover {
    background: #f1f5f9;
    color: var(--secondary);
}

.day-card.today .day-expand-btn {
    color: rgba(255, 255, 255, 0.5);
}

.day-card.today .day-expand-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ---- Day Detail modal ---- */
.modal-box-day-detail {
    max-width: 460px;
}

.day-detail-session {
    position: relative;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid #3b82f6;
    padding: 0.875rem 2.75rem 0.875rem 0.875rem;
    margin-bottom: 0.625rem;
    transition: background 0.15s;
}

.day-detail-session:last-child {
    margin-bottom: 0;
}

.day-detail-session-header {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.day-detail-session-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.2rem;
}

.day-detail-session-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.day-detail-delete {
    position: absolute;
    right: 0.625rem;
    top: 0.625rem;
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .days-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .crono-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .days-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .crono-header {
        flex-direction: column;
        align-items: stretch;
    }

    .crono-header-actions {
        justify-content: flex-start;
    }

    .crono-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .days-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {
    .days-grid {
        grid-template-columns: 1fr;
    }

    .week-label-area {
        min-width: 0;
        font-size: 0.875rem;
    }

    .btn-add-session span,
    .btn-clear-all span,
    .btn-ai-session span {
        display: none;
    }

    .btn-add-session,
    .btn-clear-all,
    .btn-ai-session {
        padding: 0.6rem 0.9rem;
    }

    .ai-slots-header { display: none; }

    .ai-slot-row {
        grid-template-columns: 1fr 90px 90px 34px;
    }
}

/* ══════════════════════════════════════════════
   DARK MODE — cronograma.css
   ══════════════════════════════════════════════ */

/* Botão limpar tudo */
[data-theme="dark"] .btn-clear-all {
    background: #1a0f0f;
    border-color: #3b1a1a;
    color: #ef4444;
}

[data-theme="dark"] .btn-clear-all:hover {
    background: #2a1212;
}

/* Stat cards da semana */
[data-theme="dark"] .crono-stat-card {
    background: #111d2e;
    border-color: #1e3550;
    box-shadow: none;
}

[data-theme="dark"] .crono-stat-val {
    color: #e2e8f0;
}

[data-theme="dark"] .crono-stat-lbl {
    color: #64748b;
}

/* Navegação de semana */
[data-theme="dark"] .week-nav-btn {
    background: #19273a;
    border-color: #1e3550;
    color: #94a3b8;
}

[data-theme="dark"] .week-nav-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

[data-theme="dark"] .week-label-area {
    color: #e2e8f0;
}

[data-theme="dark"] .today-pill {
    background: #19273a;
    border-color: #3b82f6;
    color: #3b82f6;
}

[data-theme="dark"] .today-pill:hover {
    background: #3b82f6;
    color: #fff;
}

/* Day cards */
[data-theme="dark"] .day-card {
    background: #111d2e;
    border-color: #1e3550;
    box-shadow: none;
}

[data-theme="dark"] .day-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .day-card.today {
    border-color: #1e40af;
    box-shadow: 0 0 0 2px #1e3a5f, 0 4px 20px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .day-card-header {
    border-bottom-color: #1e3550;
}

[data-theme="dark"] .day-name {
    color: #94a3b8;
}

[data-theme="dark"] .day-date {
    color: #64748b;
}

[data-theme="dark"] .day-count {
    background: #1e3550;
    color: #64748b;
}

[data-theme="dark"] .day-empty {
    color: #1e3550;
}

/* Study blocks */
[data-theme="dark"] .study-block {
    background: #19273a;
    border-left-color: #3b82f6;
}

[data-theme="dark"] .study-block:hover {
    background: #1f3145;
}

[data-theme="dark"] .block-title {
    color: #e2e8f0;
}

[data-theme="dark"] .block-time {
    color: #64748b;
}

[data-theme="dark"] .block-desc {
    color: #94a3b8;
}

[data-theme="dark"] .block-delete {
    color: #1e3550;
}

[data-theme="dark"] .block-delete:hover {
    background: #2a1212;
    color: #ef4444;
}

/* Botão adicionar por dia */
[data-theme="dark"] .day-add-btn {
    border-color: #1e3550;
    color: #64748b;
}

[data-theme="dark"] .day-add-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #19273a;
}

/* Modais */
[data-theme="dark"] .modal-box {
    background: #111d2e;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .modal-header {
    border-bottom-color: #1e3550;
}

[data-theme="dark"] .modal-header h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .modal-close {
    background: #19273a;
    color: #94a3b8;
}

[data-theme="dark"] .modal-close:hover {
    background: #1f3145;
}

[data-theme="dark"] .modal-intro {
    color: #94a3b8;
}

[data-theme="dark"] .modal-footer {
    border-top-color: #1e3550;
}

/* Form controls dentro do modal */
[data-theme="dark"] .form-group label {
    color: #94a3b8;
}

[data-theme="dark"] .form-control {
    background: #19273a;
    border-color: #1e3550;
    color: #e2e8f0;
}

[data-theme="dark"] .form-control::placeholder {
    color: #64748b;
}

[data-theme="dark"] .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Type chips no form */
[data-theme="dark"] .type-chip {
    background: #19273a;
    border-color: #1e3550;
    color: #94a3b8;
}

[data-theme="dark"] .type-chip:hover:not(.active) {
    border-color: #2d4060;
    background: #1f3145;
}

[data-theme="dark"] .type-chip[data-type="teoria"].active {
    background: #19273a;
    border-color: #3b82f6;
    color: #3b82f6;
}

[data-theme="dark"] .type-chip[data-type="pratica"].active {
    background: #0d1f0f;
    border-color: #22c55e;
    color: #22c55e;
}

[data-theme="dark"] .type-chip[data-type="revisao"].active {
    background: #1f1507;
    border-color: #f59e0b;
    color: #f59e0b;
}

[data-theme="dark"] .type-chip[data-type="analise"].active {
    background: #170d2a;
    border-color: #8b5cf6;
    color: #8b5cf6;
}

/* Botão cancelar modal */
[data-theme="dark"] .btn-modal-cancel {
    background: #19273a;
    border-color: #1e3550;
    color: #94a3b8;
}

[data-theme="dark"] .btn-modal-cancel:hover {
    background: #1f3145;
}

/* AI slot remove */
[data-theme="dark"] .ai-slot-remove {
    background: #1a0f0f;
    border-color: #3b1a1a;
    color: #ef4444;
}

[data-theme="dark"] .ai-slot-remove:hover {
    background: #2a1212;
}

/* Add slot button */
[data-theme="dark"] .btn-add-slot {
    border-color: #1e3550;
    color: #3b82f6;
}

[data-theme="dark"] .btn-add-slot:hover {
    border-color: #3b82f6;
    background: #19273a;
}

/* AI subject tags */
[data-theme="dark"] .ai-subject-tag {
    background: #19273a;
    border-color: #1e3550;
    color: #93c5fd;
}

[data-theme="dark"] .ai-subject-tag button {
    color: #1e3550;
}

[data-theme="dark"] .ai-subject-tag button:hover {
    color: #93c5fd;
}

/* AI type check labels */
[data-theme="dark"] .ai-type-check-label {
    background: #19273a;
    border-color: #1e3550;
    color: #94a3b8;
}

[data-theme="dark"] .ai-type-check-label:hover {
    border-color: #2d4060;
    background: #1f3145;
}

/* Empty state */
[data-theme="dark"] .crono-empty-state {
    background: #111d2e;
    border-color: #1e3550;
    color: #64748b;
}

[data-theme="dark"] .crono-empty-state i {
    color: #1e3550;
}

[data-theme="dark"] .crono-empty-state h3 {
    color: #94a3b8;
}

[data-theme="dark"] .crono-empty-state p {
    color: #64748b;
}

/* Day expand button — dark mode */
[data-theme="dark"] .day-expand-btn {
    color: #1e3550;
}

[data-theme="dark"] .day-expand-btn:hover {
    background: #1f3145;
    color: #3b82f6;
}

/* Day detail session — dark mode */
[data-theme="dark"] .day-detail-session {
    background: #19273a;
}

[data-theme="dark"] .day-detail-session:hover {
    background: #1f3145;
}

[data-theme="dark"] .day-detail-session-title {
    color: #e2e8f0;
}

[data-theme="dark"] .day-detail-session-desc {
    color: #94a3b8;
}
