/* ===== ADMIN LAYOUT ===== */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 56px);
}

.admin-sidebar {
    background: white;
    border-right: 1px solid var(--border);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
}

.admin-sidebar .nav-section {
    padding: 0 16px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.admin-nav { list-style: none; }

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.admin-nav a:hover { background: var(--bg-soft); color: var(--text); }
.admin-nav a.active {
    color: var(--primary);
    background: var(--primary-soft);
    border-left-color: var(--primary);
    font-weight: 600;
}

.admin-nav .nav-icon { font-size: 18px; width: 24px; text-align: center; }

.admin-sidebar .sidebar-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

/* ===== MAIN CONTENT ===== */
.admin-main {
    padding: 28px 32px;
    overflow-y: auto;
    max-height: calc(100vh - 56px);
    background: var(--bg-soft);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.admin-header h1 { font-size: 26px; font-weight: 800; color: var(--text); }

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

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

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

.stat-icon.purple { background: var(--primary-soft); }
.stat-icon.green { background: var(--accent-soft); }
.stat-icon.yellow { background: #FFF3E0; }
.stat-icon.blue { background: #E8F4FD; }

.stat-value { font-size: 28px; font-weight: 800; line-height: 1; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ===== TABLE ===== */
.table-container { overflow-x: auto; }

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

.data-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    background: var(--bg-soft);
}

.data-table td {
    padding: 12px 14px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table tr:hover td { background: var(--bg-soft); }

.table-actions { display: flex; gap: 5px; flex-wrap: wrap; }

.table-actions button {
    padding: 5px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: opacity 0.2s;
}
.table-actions button:hover { opacity: 0.85; }

.action-enter { background: var(--primary); color: white; }
.action-copy { background: var(--accent); color: white; }
.action-edit { background: #3B82F6; color: white; }
.action-end { background: var(--warning); color: #333; }
.action-delete { background: var(--danger); color: white; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 42px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; color: var(--text); margin-bottom: 6px; }

/* ===== LOGIN PAGE ===== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px;
    background: var(--bg-soft);
}

.login-card { max-width: 380px; width: 100%; text-align: center; }

.login-card .logo-big {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: white;
    margin: 0 auto 20px;
}

.login-card h2 { font-size: 22px; margin-bottom: 4px; }
.login-card .subtitle { color: var(--text-muted); margin-bottom: 28px; font-size: 14px; }

/* ===== SCHEDULE ===== */
.schedule-list { display: flex; flex-direction: column; gap: 10px; }

.schedule-item { display: flex; align-items: center; gap: 16px; padding: 16px; }

.schedule-date { width: 56px; text-align: center; flex-shrink: 0; }
.schedule-date .day { font-size: 24px; font-weight: 800; color: var(--primary); line-height: 1; }
.schedule-date .month { font-size: 12px; color: var(--text-muted); text-transform: uppercase; }

.schedule-info { flex: 1; }
.schedule-info .title { font-weight: 600; font-size: 15px; }
.schedule-info .time { color: var(--text-muted); font-size: 13px; }

@media (max-width: 768px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-main { padding: 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
