/* ==========================================================================
   Accountability Tracker - Shared Styles
   ========================================================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.task-button {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.task-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.task-button.checked {
    background: #10b981;
    color: white;
    border-color: #10b981;
}
.task-button.unchecked {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.score-cell {
    padding: 12px;
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    color: white;
    transition: all 0.3s;
}
.score-exceptional { background: #7030A0; }
.score-pass { background: #10b981; }
.score-okay { background: #f59e0b; color: #1f2937; }
.score-fail { background: #ef4444; }

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.legend-item {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    margin: 4px;
}

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

.day-header {
    background: #4472C4;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-radius: 6px 6px 0 0;
}

.weekend {
    background: #5B9BD5;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th, td {
    padding: 12px;
    border: 1px solid #e5e7eb;
}

.task-row:hover {
    background: #f9fafb;
}

.task-actions {
    opacity: 0;
    transition: opacity 0.15s;
    white-space: nowrap;
}
.task-row:hover .task-actions {
    opacity: 1;
}

.icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: #eef2ff;
    color: #4f46e5;
    cursor: pointer;
    font-size: 12px;
    margin-left: 4px;
}
.icon-btn:hover {
    background: #e0e7ff;
}
.icon-btn-danger {
    background: #fee2e2;
    color: #dc2626;
}
.icon-btn-danger:hover {
    background: #fecaca;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}
.modal-content {
    background: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
}

.btn-primary {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}
.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}
.btn-secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.btn-nav {
    background: white;
    color: #4f46e5;
    padding: 10px 20px;
    border-radius: 6px;
    border: 2px solid #4f46e5;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-nav:hover:not(:disabled) {
    background: #4f46e5;
    color: white;
}
.btn-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #9ca3af;
    color: #9ca3af;
}

.btn-danger {
    background: #ef4444;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}
.btn-danger:hover {
    background: #dc2626;
}

.week-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    border: 2px solid transparent;
}
.week-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
}
.week-card.not-tracked {
    opacity: 0.7;
}
.week-card.active-detail {
    border-color: #4f46e5;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.mini-day {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
}
