/* ========================================
   Dashboard Styles
   ======================================== */

.dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background-color: #f5f7fa;
}

/* Sidebar */
.dashboard-sidebar {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 1.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: #b8b8c7;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    padding-left: 1.75rem;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 107, 53, 0.05) 100%);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    right: 1.5rem;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-item:hover i {
    transform: scale(1.1);
}

.nav-item.active i {
    color: var(--primary-color);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: #b8b8c7;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

.logout-btn:hover {
    background-color: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
    transform: translateX(5px);
}

.logout-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.logout-btn:hover i {
    transform: rotate(-10deg);
}

/* Main Content */
.dashboard-main {
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    width: calc(100% - 260px);
    max-width: 100%;
}

.dashboard-header {
    background-color: var(--text-white);
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.header-left h1 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--text-dark);
}

.dashboard-header-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-header-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.time-widget {
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e9ecef;
}

.time-widget i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.time-widget .time-display {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-right: 8px;
}

.time-widget .date-display {
    font-size: 0.8rem;
    color: var(--text-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition-base);
}

.notification-btn:hover {
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: var(--text-white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

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

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Content Area */
.dashboard-content {
    padding: 2rem;
    background: #f5f7fa;
    min-height: calc(100vh - 80px);
    width: 100%;
    max-width: 100%;
}

.content-section {
    display: none;
    width: 100%;
    max-width: 100%;
}

.content-section.active {
    display: block;
    width: 100%;
    max-width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.stat-card {
    background-color: var(--text-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: visible;
    min-height: 140px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1;
}

.stat-card-content {
    display: flex;
    width: 100%;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.stat-card:nth-child(1)::before {
    background: linear-gradient(90deg, #004e89, #0066b2);
}

.stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, #28a745, #34ce57);
}

.stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, #ff6b35, #ff8557);
}

.stat-card:nth-child(4)::before {
    background: linear-gradient(90deg, #9b59b6, #b06bce);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.75rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.stat-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1;
}

.stat-info p {
    margin: 0 0 0.75rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 1rem;
}

.stat-change i {
    font-size: 0.75rem;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

.stat-change.neutral {
    color: var(--text-light);
}

.stat-progress {
    width: calc(100% + 3rem);
    height: 6px;
    background: #ecf0f1;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: -1.5rem;
    right: -1.5rem;
}

.stat-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

#activeMembers .stat-progress-bar {
    background: linear-gradient(90deg, #004e89, #0066b2);
}

#classesBooked .stat-progress-bar {
    background: linear-gradient(90deg, #28a745, #34ce57);
}

#revenue .stat-progress-bar {
    background: linear-gradient(90deg, #ff6b35, #ff8557);
}

#attendance .stat-progress-bar {
    background: linear-gradient(90deg, #9b59b6, #b06bce);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.dashboard-card {
    background-color: var(--text-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
    width: 100%;
}

.dashboard-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-card h2 {
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 700;
}

.dashboard-card h3 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Class Schedule */
.class-schedule {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: white;
    border-radius: var(--radius-md);
    border-left: 4px solid #004e89;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.schedule-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.schedule-item.completed {
    border-left-color: #28a745;
    opacity: 0.9;
}

.schedule-item.in-progress {
    border-left-color: #ff6b35;
    animation: pulse 2s infinite;
}

.schedule-item.upcoming {
    border-left-color: #004e89;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.92; }
}

.schedule-info {
    flex: 1;
}

.schedule-time {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.schedule-duration {
    color: #95a5a6;
    font-size: 0.8rem;
    font-weight: 400;
}

.schedule-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
}

.schedule-info p {
    margin: 0 0 0.3rem 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.schedule-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.schedule-status i {
    font-size: 1.3rem;
}

.schedule-item.completed .schedule-status i {
    color: #28a745;
}

.schedule-item.in-progress .schedule-status i {
    color: #ff6b35;
}

.schedule-item.upcoming .schedule-status i {
    color: #004e89;
}

.schedule-badge {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-completed {
    background-color: #d4edda;
    color: #155724;
}

.badge-almost-full {
    background-color: #fff3cd;
    color: #856404;
}

.badge-popular {
    background-color: #cce5ff;
    color: #004085;
}

.badge-available {
    background-color: #d1ecf1;
    color: #0c5460;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    width: 100%;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background-color: var(--text-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 78, 137, 0.1), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 107, 53, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 78, 137, 0.2);
}

.action-btn i {
    font-size: 2rem;
    color: var(--primary-color);
}

.action-btn span {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Recent Bookings */
.recent-bookings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
}

.booking-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.booking-info {
    flex: 1;
}

.booking-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.booking-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.booking-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Table */
.table-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 78, 137, 0.1);
}

.filter-select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background-color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

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

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr {
    transition: all 0.2s;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.005);
}

.member-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #004e89, #0066b2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.member-name {
    font-weight: 600;
    color: var(--text-dark);
}

.member-email {
    font-size: 0.8rem;
    color: var(--text-light);
}

.class-cell strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 3px;
    font-weight: 600;
}

.class-cell span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.datetime-cell div:first-child {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.time-cell {
    font-size: 0.85rem;
    color: var(--text-light);
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.icon-btn {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.3s;
    border-radius: 6px;
}

.icon-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    color: var(--text-light);
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    gap: 5px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

.chart-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.popularity-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.popularity-item {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 1rem;
    align-items: center;
}

.popularity-bar {
    height: 8px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.popularity-bar div {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
}

/* Growth Chart */
.growth-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.growth-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.growth-item-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.growth-item-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.growth-bar {
    height: 8px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 8px;
}

.growth-bar-fill {
    height: 100%;
    border-radius: var(--radius-md);
    transition: width 0.5s ease;
}

.growth-item:nth-child(1) .growth-bar-fill {
    background: linear-gradient(90deg, #004e89, #0066b2);
}

.growth-item:nth-child(2) .growth-bar-fill {
    background: linear-gradient(90deg, #28a745, #34ce57);
}

.growth-item:nth-child(3) .growth-bar-fill {
    background: linear-gradient(90deg, #ff6b35, #ff8557);
}

/* Popularity Chart */
.popularity-chart {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.popularity-chart-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popularity-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popularity-chart-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.popularity-chart-percent {
    font-weight: 700;
    font-size: 1rem;
}

.popularity-progress {
    height: 10px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.popularity-progress-bar {
    height: 100%;
    border-radius: var(--radius-md);
    transition: width 0.5s ease;
}

.popularity-chart-item:nth-child(1) .popularity-progress-bar {
    background: linear-gradient(90deg, #004e89, #0066b2);
}

.popularity-chart-item:nth-child(2) .popularity-progress-bar {
    background: linear-gradient(90deg, #28a745, #34ce57);
}

.popularity-chart-item:nth-child(3) .popularity-progress-bar {
    background: linear-gradient(90deg, #ff6b35, #ff8557);
}

.popularity-chart-item:nth-child(4) .popularity-progress-bar {
    background: linear-gradient(90deg, #9b59b6, #b06bce);
}

/* Booking Summary Cards */
.booking-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
    width: 100%;
}

.summary-card {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.summary-card i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.summary-card div {
    flex: 1;
}

.summary-card h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.summary-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Membership Breakdown */
.membership-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.breakdown-item:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.breakdown-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

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

.breakdown-item strong {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* Quick Stats Grid */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quick-stat {
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.quick-stat:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* Weekly Schedule */
.weekly-schedule {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    width: 100%;
}

.day-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.day-header {
    font-weight: 700;
    color: white;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 78, 137, 0.3);
}

.day-classes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-class-card {
    background: white;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mini-class-card:hover {
    background: var(--bg-light);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.class-time-mini {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.class-name-mini {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.class-spots-mini {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Announcements */
.announcement-form {
    width: 100%;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.75rem;
    border: 1px solid transparent;
}

.checkbox-label:hover {
    background: #e9ecef;
    border-color: var(--border-color);
}

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

.checkbox-label span {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Announcement List */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcement-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s;
}

.announcement-item:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateX(3px);
}

.announcement-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.announcement-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
}

.announcement-item p {
    margin: 0 0 0.75rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.announcement-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.announcement-meta i {
    margin-right: 0.25rem;
}

/* Badge Styles */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.badge {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid,
    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .weekly-schedule {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

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

@media (max-width: 968px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: var(--transition-base);
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .time-widget {
        display: none;
    }

    .booking-summary-cards {
        grid-template-columns: 1fr;
    }

    .weekly-schedule {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-stats-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .table-filters {
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
    }
}
