:root {
    /* Tema Claro (padrão) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --border-color: #e2e8f0;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --success-color: #059669;
    --warning-color: #d97706;
    --header-bg: #1e293b;
    --header-text: #ffffff;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --hover-bg: #f1f5f9;
    --table-stripe: #f8fafc;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --header-bg: #0c1222;
    --header-text: #f1f5f9;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    --hover-bg: #334155;
    --table-stripe: #162032;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Header */
header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.theme-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--header-text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Legend */
.legend {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.legend h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.legend-items {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.status-icon {
    font-size: 1.2rem;
}

/* Schedule Sections */
.month-section {
    margin: 2rem 0;
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.month-header {
    background-color: var(--bg-secondary);
    padding: 1.2rem 1.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.month-header h2 {
    font-size: 1.4rem;
    color: var(--accent-color);
}

.month-content {
    padding: 1rem;
    overflow-x: auto;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

thead {
    background-color: var(--bg-secondary);
}

th {
    padding: 0.8rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:nth-child(even) {
    background-color: var(--table-stripe);
}

tbody tr:hover {
    background-color: var(--hover-bg);
}

.status-cell {
    cursor: pointer;
    user-select: none;
    font-size: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
    min-width: 60px;
}

.status-cell:hover {
    transform: scale(1.2);
}

.status-cell[data-status="0"] {
    filter: grayscale(0.3);
}

.status-cell[data-status="1"] {
    filter: brightness(1.1);
}

.status-cell[data-status="2"] {
    filter: brightness(1.2);
}

/* Goals Section */
.goals {
    margin: 2rem 0;
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.goals h2 {
    background-color: var(--bg-secondary);
    padding: 1.2rem 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    font-size: 1.4rem;
    color: var(--accent-color);
}

.goals-content {
    padding: 1rem;
    overflow-x: auto;
}

.goals-table td:last-child {
    text-align: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.goals-table td:last-child:hover {
    transform: scale(1.2);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.4rem;
    }
    
    .legend-items {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 0.6rem;
    }
    
    .status-cell {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .container {
        padding: 0 10px;
    }
    
    th, td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}
/* Adicionar ao final do arquivo style.css */

/* Animação de salvamento */
.save-toast {
    animation: slideIn 0.3s ease;
}

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

/* Melhorias nos botões */
.reset-btn {
    font-family: inherit;
}

.reset-btn:hover {
    background-color: rgba(239, 68, 68, 0.3) !important;
}

/* Indicador de dados salvos */
.status-cell {
    position: relative;
}

.status-cell::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-cell[data-status="2"]::after {
    opacity: 1;
}

/* Responsividade para os botões */
@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .reset-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
/* Estilo para o crédito no rodapé */
.credits {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
    font-style: italic;
    letter-spacing: 0.3px;
}

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

.credits:hover {
    opacity: 1;
    color: var(--accent-color);
    transition: all 0.3s ease;
}
