/* ==========================================
   ADMIN DASHBOARD CORE STYLES
=========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #334155;
}

/* ==========================================
   ADMIN LAYOUT
=========================================== */
.admin-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: #0f172a;
    color: #ffffff;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 1px solid #1e293b;
}

.sidebar-header h2 {
    font-size: 1.35rem;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-menu li a.active,
.nav-menu li a:hover {
    background: #0284c7;
    color: #ffffff;
}

.logout-item {
    margin-top: auto;
}

.logout-btn {
    color: #f87171 !important;
}

.logout-btn:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
}

/* MAIN CONTENT CONTAINER */
.content {
    flex: 1;
    padding: 35px 40px;
    overflow-y: auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 6px;
}

.section-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* ==========================================
   FORMS
=========================================== */
.admin-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.admin-form textarea {
    min-height: 90px;
    resize: vertical;
}

.btn-submit {
    grid-column: span 2;
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 13px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: #0369a1;
}

.btn-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* ==========================================
   DATA LISTS & TABLES
=========================================== */
.data-table-container {
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.data-table-container h3 {
    font-size: 1.2rem;
    color: #0f172a;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.data-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.data-item:hover {
    background: #f1f5f9;
}

.data-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-info strong {
    color: #0f172a;
    font-size: 1rem;
}

.data-info span {
    color: #64748b;
    font-size: 0.88rem;
}

.btn-delete {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-delete:hover {
    background: #dc2626;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .admin-layout {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    .sidebar {
        width: 100%;
        height: auto;
    }
    .admin-form {
        grid-template-columns: 1fr;
    }
    .form-group.full-width,
    .btn-submit {
        grid-column: span 1;
    }
}