/* assets/admin.css - Modern Admin Dashboard Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-admin: #f4f6f8;
    --panel-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    
    --primary: #c49a2a;
    --primary-hover: #9e791b;
    
    --danger: #ef4444;
    --danger-hover: #dc2626;
    
    --success: #10b981;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    
    --border: #e2e8f0;
    --border-radius: 6px;
    --transition: all 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-admin);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: inherit;
}

/* Login Page Layout */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.login-card {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}

.login-logo {
    display: block;
    margin: 0 auto 1.5rem;
    height: 48px;
    width: auto;
}

.login-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Dashboard Layout */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    background: #1e1e2d;
    color: #a2a3b7;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 2rem;
    margin-left: 0.5rem;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    color: #a2a3b7;
    font-weight: 500;
}

.sidebar-item a:hover, .sidebar-item.active a {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.sidebar-item.active a {
    color: var(--primary);
    font-weight: 600;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Main Content Area */
.admin-content {
    padding: 2rem;
    overflow-y: auto;
}

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

.content-title {
    font-size: 1.6rem;
    font-weight: 600;
}

/* Dashboard Cards (Metrics) */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.metric-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Panel/Cards for Forms and Tables */
.admin-card {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

/* Form Styles */
.admin-form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.admin-form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.admin-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-family: inherit;
    font-size: 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
}

.admin-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 154, 42, 0.12);
}

.admin-textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.admin-btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.admin-btn-primary:hover {
    background: var(--primary-hover);
}

.admin-btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.admin-btn-danger:hover {
    background: var(--danger-hover);
}

.admin-btn-secondary {
    background: var(--border);
    color: var(--text-primary);
}

.admin-btn-secondary:hover {
    background: #cbd5e1;
}

/* Tables Styles */
.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-table tr:hover td {
    background: #f8fafc;
}

/* Alerts / Messages */
.admin-alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.admin-alert-success {
    background: var(--success-bg);
    color: #065f46;
    border: 1px solid var(--success-border);
}

.admin-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Table Badges */
.badge {
    display: inline-flex;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.flex-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Premium Dashboard Card Rows */
.stat-card-row {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1.2;
}

.stat-card-icon {
    background: #f1f5f9;
    color: var(--text-secondary);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid var(--border);
}

.stat-card-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-card-cols {
    display: flex;
    align-items: center;
    flex: 2.5;
    border-left: 1px solid var(--border);
    padding-left: 2.5rem;
}

.stat-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.stat-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--border);
}

.stat-col-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.stat-col-val {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Venue Availability Panel */
.avail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.venue-pill {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    color: #ffffff;
    min-width: 80px;
    transition: var(--transition);
}

.venue-pill.venue-avail {
    background: var(--success);
    border: 1px solid var(--success-border);
}

.venue-pill.venue-booked {
    background: #e2e8f0;
    color: #64748b;
    border: 1px solid #cbd5e1;
    text-decoration: line-through;
}

@media (max-width: 992px) {
    .stat-card-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .stat-card-cols {
        border-left: none;
        padding-left: 0;
        width: 100%;
    }
}

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