@charset "UTF-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
    --admin-primary: #2563EB;
    --admin-primary-dark: #1D4ED8;
    --admin-sidebar-bg: #1E293B;
    --admin-sidebar-hover: #334155;
    --admin-bg: #F1F5F9;
    --admin-card-bg: #FFFFFF;
    --admin-text: #0F172A;
    --admin-muted: #64748B;
    --admin-border: #E2E8F0;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #06B6D4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.admin-body {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--admin-bg);
    color: var(--admin-text);
    display: flex;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    background-color: var(--admin-sidebar-bg);
    color: #CBD5E1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}
.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
}
.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
}
.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #94A3B8;
    transition: all 0.2s;
}
.sidebar-item a:hover, .sidebar-item.active a {
    color: #FFFFFF;
    background-color: var(--admin-sidebar-hover);
    border-left: 4px solid var(--admin-primary);
}
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94A3B8;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.sidebar-footer a:hover {
    color: #FFFFFF;
}

/* Main Area */
.admin-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.admin-topbar {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--admin-border);
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-title h1 {
    font-size: 1.35rem;
    font-weight: 700;
}
.topbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
}
.admin-badge {
    background-color: #DBEAFE;
    color: var(--admin-primary);
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.admin-content {
    padding: 30px;
    flex-grow: 1;
}

/* Alert messages */
.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}
.alert-danger {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.stat-card .stat-text p {
    font-size: 0.88rem;
    color: var(--admin-muted);
    margin-bottom: 6px;
}
.stat-card .stat-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
}
.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.stat-card.blue .stat-icon { background: #DBEAFE; color: #2563EB; }
.stat-card.amber .stat-icon { background: #FEF3C7; color: #D97706; }
.stat-card.emerald .stat-icon { background: #D1FAE5; color: #059669; }
.stat-card.purple .stat-icon { background: #F3E8FF; color: #7C3AED; }

/* Admin Panels & Tables */
.admin-panel {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.panel-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}
.panel-body {
    padding: 24px;
}

.table-responsive {
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.admin-table th, .admin-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
}
.admin-table th {
    background-color: #F8FAFC;
    color: var(--admin-muted);
    font-weight: 600;
}
.admin-table tr:hover td {
    background-color: #F8FAFC;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}
.badge-waiting { background-color: #FEF3C7; color: #B45309; }
.badge-confirmed { background-color: #DBEAFE; color: #1D4ED8; }
.badge-completed { background-color: #D1FAE5; color: #047857; }
.badge-canceled { background-color: #FEE2E2; color: #B91C1C; }

/* Buttons */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
    border-radius: 6px;
}
.btn-primary {
    background-color: var(--admin-primary);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.btn-primary:hover {
    background-color: var(--admin-primary-dark);
}
.btn-danger {
    background-color: var(--danger);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.btn-secondary {
    background-color: #E2E8F0;
    color: #334155;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.btn-secondary:hover {
    background-color: #CBD5E1;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.form-group.full {
    grid-column: span 2;
}
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}
.page-link {
    padding: 6px 14px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    font-size: 0.9rem;
    background: #FFFFFF;
}
.page-link.active {
    background-color: var(--admin-primary);
    color: #FFFFFF;
    border-color: var(--admin-primary);
}

/* Login Page Specific */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    padding: 20px;
}
.login-box {
    width: 100%;
    max-width: 420px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}
.login-header {
    text-align: center;
    margin-bottom: 30px;
}
.login-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0F172A;
    margin-top: 10px;
}
.login-header p {
    color: #64748B;
    font-size: 0.9rem;
}
