/* Modern Admin Panel Stylesheet with Glassmorphism and Sacred Colors */
:root {
    --primary: #E65100;
    --primary-light: #FF8F00;
    --accent: #FFD700;
    --dark: #3E2723;
    --light-bg: #FCFBF9;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border-color: rgba(230, 81, 0, 0.15);
    --shadow: 0 8px 32px 0 rgba(62, 39, 35, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #FCFBF9 0%, #FFF3E0 100%);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Containers */
.glass-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

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

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

.login-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.2);
}

.login-card h2 {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.login-card p {
    font-size: 13px;
    color: #6D4C41;
    margin-bottom: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid rgba(230, 81, 0, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.15);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.15);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 81, 0, 0.25);
}

/* Dashboard Header & Sidebar Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--dark);
    color: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.sidebar-logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.sidebar-logo h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.sidebar-link.logout-link {
    color: #FF8A80;
}

.sidebar-link.logout-link:hover {
    background: rgba(255, 138, 128, 0.15);
}

/* Main Dashboard Area */
.main-content {
    flex-grow: 1;
    padding: 32px;
    overflow-y: auto;
}

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

.content-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

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

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(230, 81, 0, 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.stat-info h3 {
    font-size: 13px;
    font-weight: 600;
    color: #6D4C41;
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

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

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

th {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #6D4C41;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--dark);
    border-bottom: 1px solid rgba(230, 81, 0, 0.05);
}

tr:hover td {
    background: rgba(255, 243, 224, 0.3);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-warning {
    background: #FFF8E1;
    color: #F57F17;
}

.badge-danger {
    background: #FFEBEE;
    color: #C62828;
}

.badge-info {
    background: #E3F2FD;
    color: #1565C0;
}

/* Alert Notification */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}
.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}
.alert-danger {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}
