/* ==================== PROGRAM DASHBOARD STYLES ==================== */

.program-dashboard {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.dashboard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    /* GPU hızlandırma - blur performansı için */
    transform: translateZ(0);
    will-change: opacity;
}

.dashboard-container {
    position: relative;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    background: var(--bg-card, white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg, 0 10px 40px rgba(0, 0, 0, 0.3));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideInUp 0.3s ease;
}

/* ==================== HEADER ==================== */

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dashboard-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.dashboard-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ==================== TABS ==================== */

.dashboard-tabs {
    display: flex;
    background: var(--bg-tertiary, #f8f9fa);
    border-bottom: 2px solid var(--border-color, #e0e0e0);
    padding: 0 32px;
}

.tab-button {
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary, #666);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color, #667eea);
}

.tab-button.active {
    color: var(--primary-color, #667eea);
    border-bottom-color: var(--primary-color, #667eea);
    background: var(--bg-card, white);
}

/* ==================== BODY ==================== */

.dashboard-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: var(--bg-primary, #f5f7fa);
    /* Scroll performans optimizasyonu */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    will-change: scroll-position;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ==================== QUICK ACTIONS BAR ==================== */

.quick-actions-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-action {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-tertiary, #f0f0f0);
    color: var(--text-primary, #333);
}

.btn-action:hover {
    background: var(--border-color, #e0e0e0);
    transform: translateY(-2px);
}

.btn-action.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-action.primary:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Search Box */
.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--bg-card, white);
    color: var(--text-primary, #333);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Filter Dropdown */
.filter-dropdown {
    position: relative;
}

.filter-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: var(--bg-card, white);
    border-radius: 10px;
    box-shadow: var(--shadow-lg, 0 4px 12px rgba(0, 0, 0, 0.15));
    padding: 16px;
    min-width: 250px;
    z-index: 10;
    border: 1px solid var(--border-color, #e0e0e0);
}

.filter-section {
    margin-bottom: 12px;
}

.filter-section label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary, #666);
}

.filter-section select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-card, white);
    color: var(--text-primary, #333);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary, #f0f0f0);
    border-radius: 8px;
    padding: 4px;
}

.btn-view {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary, #666);
}

.btn-view:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color, #667eea);
}

.btn-view.active {
    background: var(--bg-card, white);
    color: var(--primary-color, #667eea);
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ==================== PROGRAMS CONTAINER ==================== */

.programs-container {
    min-height: 300px;
    margin-bottom: 24px;
}

.programs-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.programs-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==================== PROGRAM CARDS ==================== */

.program-card {
    background: var(--bg-card, white);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.program-card:hover {
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

.program-card.list {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
}

.program-card.list .card-body {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.card-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary, #f0f0f0);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--primary-color, #667eea);
    transform: scale(1.1);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.info-item {
    font-size: 13px;
    color: var(--text-secondary, #666);
    padding: 6px 12px;
    background: var(--bg-tertiary, #f8f9fa);
    border-radius: 6px;
}

/* Progress Bar */
.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: var(--bg-tertiary, #e0e0e0);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient, linear-gradient(90deg, #667eea, #764ba2));
    border-radius: 5px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color, #667eea);
    white-space: nowrap;
}

.card-details {
    font-size: 13px;
    color: var(--text-secondary, #666);
    line-height: 1.6;
}

.card-details p {
    margin: 4px 0;
}

/* ==================== TODAY'S TASKS WIDGET ==================== */

.todays-tasks-widget {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(118, 75, 162, 0.06));
    border: 2px solid rgba(102, 126, 234, 0.25);
    border-radius: 16px;
    padding: 24px;
}

.todays-tasks-widget h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: var(--text-primary, #1a1a1a);
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card, white);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: var(--bg-tertiary, #f8f9fa);
}

.task-item.completed {
    opacity: 0.6;
}

.task-item.completed .task-content {
    text-decoration: line-through;
}

.task-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.task-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color, #667eea);
    min-width: 50px;
}

.task-content {
    font-size: 14px;
    color: var(--text-primary, #333);
}

.no-tasks {
    text-align: center;
    color: var(--text-tertiary, #999);
    font-style: italic;
}

/* ==================== STATS TAB ==================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(118, 75, 162, 0.06));
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color, #e0e0e0);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color, #667eea);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary, #666);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Overview */
.progress-overview {
    background: var(--bg-card, white);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.progress-overview h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--text-primary, #333);
}

.progress-item {
    margin-bottom: 16px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Weekly Chart */
.weekly-chart {
    background: var(--bg-card, white);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 16px;
    padding: 24px;
}

.weekly-chart h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--text-primary, #333);
}

.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    gap: 12px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar {
    width: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 8px 8px 0 0;
    position: relative;
    min-height: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
}

.bar-value {
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.bar-label {
    font-size: 13px;
    color: var(--text-secondary, #666);
    font-weight: 600;
}

/* ==================== SETTINGS TAB ==================== */

.settings-content {
    max-width: 800px;
}

.setting-section {
    background: var(--bg-card, white);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.setting-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--text-primary, #333);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary, #333);
}

.form-group input[type="time"],
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-card, white);
    color: var(--text-primary, #333);
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary, #f0f0f0);
    color: var(--text-primary, #333);
}

.btn-secondary:hover {
    background: var(--border-color, #e0e0e0);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336, #e53935);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    width: 100%;
}

/* ==================== EMPTY STATE ==================== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin: 0 0 12px 0;
    color: var(--text-primary, #1a1a1a);
}

.empty-state p {
    font-size: 16px;
    color: var(--text-secondary, #666);
    margin: 0 0 24px 0;
}

/* ==================== CALENDAR TAB ==================== */

.calendar-tab-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    min-height: 500px;
}

/* Sol Sidebar */
.calendar-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calendar-programs-list {
    background: var(--bg-card, white);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 16px;
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
}

.calendar-programs-list h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: var(--text-primary, #1a1a1a);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.calendar-program-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-tertiary, #f8f9fa);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calendar-program-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.program-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.calendar-program-item .program-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.program-progress-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color, #667eea);
    background: var(--bg-card, white);
    padding: 3px 8px;
    border-radius: 12px;
}

.no-programs-text {
    text-align: center;
    color: var(--text-tertiary, #999);
    font-style: italic;
    padding: 30px 10px;
    font-size: 13px;
}

/* Gorunum Secenekleri */
.calendar-view-options {
    background: var(--bg-card, white);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 16px;
    padding: 16px;
}

.calendar-view-options h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-secondary, #666);
}

.view-option-btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: var(--bg-tertiary, #f8f9fa);
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #333);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.view-option-btn:last-child {
    margin-bottom: 0;
}

.view-option-btn:hover {
    background: var(--bg-card, white);
    border-color: var(--primary-color, #667eea);
    color: var(--primary-color, #667eea);
}

.view-option-btn.active {
    background: var(--primary-gradient, linear-gradient(135deg, #667eea, #764ba2));
    color: white;
    border-color: transparent;
}

/* Sag Panel: Takvim */
.calendar-main {
    background: var(--bg-card, white);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 16px;
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.calendar-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    text-transform: capitalize;
}

.calendar-nav-btn {
    padding: 10px 18px;
    background: var(--bg-card, white);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #333);
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    background: var(--primary-color, #667eea);
    color: white;
    border-color: var(--primary-color, #667eea);
}

.calendar-grid {
    padding: 20px;
}

.calendar-day-names {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.calendar-day-name {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #666);
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    min-height: 70px;
    background: var(--bg-card, white);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:hover:not(.empty) {
    border-color: var(--primary-color, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.calendar-day.empty {
    background: var(--bg-tertiary, #f8f9fa);
    border-color: transparent;
    cursor: default;
}

.calendar-day.today {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.day-num {
    font-size: 16px;
    font-weight: 600;
}

.day-task-count {
    margin-top: 6px;
    background: var(--primary-color, #667eea);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.calendar-day.today .day-task-count {
    background: white;
    color: var(--primary-color, #667eea);
}

@media (max-width: 900px) {
    .calendar-tab-content {
        grid-template-columns: 1fr;
    }

    .calendar-sidebar {
        flex-direction: row;
        gap: 12px;
    }

    .calendar-programs-list {
        flex: 1;
        max-height: 200px;
    }

    .calendar-view-options {
        flex-shrink: 0;
    }

    .calendar-day {
        min-height: 50px;
    }
}

/* Eski stiller (uyumluluk icin) */
.calendar-view-container {
    background: var(--bg-card, white);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 16px;
    overflow: hidden;
}

@media (max-width: 900px) {
    .calendar-tab-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .calendar-programs-list {
        grid-row: auto;
        max-height: 200px;
    }
}

.info-text {
    text-align: center;
    color: var(--text-tertiary, #999);
    padding: 60px 20px;
    font-size: 16px;
}

/* Daily Calendar */
.daily-calendar {
    background: var(--bg-card, white);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 16px;
    overflow: hidden;
}

.daily-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.daily-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary, #1a1a1a);
}

.btn-nav {
    padding: 8px 16px;
    background: var(--bg-card, white);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary, #333);
}

.btn-nav:hover {
    background: var(--primary-color, #667eea);
    color: white;
    border-color: var(--primary-color, #667eea);
}

.daily-timeline {
    max-height: 600px;
    overflow-y: auto;
}

.timeline-slot {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
    transition: background 0.3s ease;
}

.timeline-slot:hover {
    background: var(--bg-tertiary, #f8f9fa);
}

.timeline-slot.filled {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.06), rgba(118, 75, 162, 0.06));
    border-left: 4px solid var(--primary-color, #667eea);
}

.slot-time {
    min-width: 70px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary, #666);
}

.slot-content {
    flex: 1;
    padding-left: 20px;
}

.slot-content.empty {
    color: var(--text-tertiary, #ccc);
    font-style: italic;
}

.slot-content strong {
    display: block;
    color: var(--primary-color, #667eea);
    margin-bottom: 4px;
}

.slot-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary, #666);
}

/* Monthly Calendar */
.monthly-calendar {
    background: var(--bg-card, white);
    border-radius: 0;
    overflow: hidden;
}

.monthly-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.monthly-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.monthly-grid {
    padding: 20px;
}

.month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.day-name {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #666);
    padding: 8px 0;
}

.month-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.month-day {
    min-height: 80px;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--bg-card, white);
}

.month-day:hover:not(.empty) {
    border-color: var(--primary-color, #667eea);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.month-day.empty {
    background: var(--bg-tertiary, #f8f9fa);
    border-color: transparent;
    cursor: default;
    min-height: 80px;
}

.month-day.today {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.day-number {
    font-size: 14px;
    font-weight: 600;
}

.day-tasks {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.task-dot {
    background: var(--primary-color, #667eea);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.month-day.today .task-dot {
    background: white;
    color: var(--primary-color, #667eea);
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1200px) {
    .programs-container.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .dashboard-header {
        padding: 16px 20px;
    }

    .dashboard-header h2 {
        font-size: 18px;
    }

    .dashboard-tabs {
        padding: 0 12px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .tab-button {
        padding: 12px 16px;
        font-size: 14px;
    }

    .dashboard-body {
        padding: 20px;
    }

    .quick-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

    .programs-container.grid-view {
        grid-template-columns: 1fr;
    }

    .program-card.list {
        flex-direction: column;
        align-items: stretch;
    }

    .program-card.list .card-body {
        flex-direction: column;
    }

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

    .chart-container {
        gap: 8px;
    }

    .bar-value {
        font-size: 10px;
    }

    .bar-label {
        font-size: 11px;
    }
}

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

    .card-info {
        flex-direction: column;
        gap: 8px;
    }
}

/* ==================== CHART.JS STYLES ==================== */

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.chart-box {
    background: var(--bg-card, white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm, 0 4px 16px rgba(0, 0, 0, 0.08));
    border: 1px solid var(--border-color, #e0e0e0);
}

.chart-box h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: var(--text-primary, #333);
    font-weight: 600;
}

.chart-box canvas {
    max-height: 300px;
}

/* Button Success Color */
.btn-action.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.btn-action.success:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

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

    .chart-box canvas {
        max-height: 250px;
    }
}
