/* public/css/admin.css - Ultra Premium Design System for EsokNikah Theme Studio */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Elegant Luxury Emerald, Gold, and Pink Theme */
    --primary: #0D2C24;
    --primary-light: #16463B;
    --primary-dark: #061814;
    --accent: #C8A96B;           /* kuning tua (gold) */
    --accent-light: #F0B2BC;     /* pink */
    --accent-dark: #A3844D;      /* dark gold */
    
    /* Premium Neutrals & Glass */
    --bg-light: #FAF8F5;         /* warm ivory cream */
    --bg-white: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(230, 236, 235, 0.6);
    --text-dark: #1E2826;
    --text-muted: #6A7B77;
    --border-color: #E2EAE7;
    
    /* Glowing Shadows */
    --shadow-sm: 0 4px 10px rgba(13, 44, 36, 0.02);
    --shadow-md: 0 12px 36px rgba(13, 44, 36, 0.05);
    --shadow-lg: 0 24px 60px rgba(13, 44, 36, 0.08);
    --shadow-glow: 0 0 30px rgba(200, 169, 107, 0.15); /* glowing gold */
    
    /* Border Radius & Transitions */
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(at 0% 0%, rgba(200, 169, 107, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(240, 178, 188, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(13, 44, 36, 0.05) 0px, transparent 40%);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(13, 44, 36, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 44, 36, 0.2);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

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

/* Sidebar Styling - Sleek Dark Forest Design */
.sidebar {
    width: 290px;
    background-color: var(--primary);
    background-image: radial-gradient(at 0% 0%, rgba(200, 169, 107, 0.12) 0px, transparent 70%);
    border-right: 1px solid rgba(200, 169, 107, 0.1);
    padding: 35px 24px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}

.logo-container {
    padding: 0 10px 35px 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 15px;
}

.logo-text h1 {
    font-size: 24px;
    color: #FFFFFF;
    line-height: 1;
}

.logo-text span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 700;
    display: block;
    margin-top: 4px;
}

.sidebar-menu {
    list-style: none;
    margin-top: 35px;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.sidebar-menu a svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.65);
    fill: none;
    stroke-width: 1.5;
    transition: var(--transition);
}

.sidebar-menu a:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.04);
}

.sidebar-menu a:hover svg {
    stroke: var(--accent-light);
    transform: translateX(2px);
}

.sidebar-menu li.active a {
    background-color: var(--accent);
    background-image: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(200, 169, 107, 0.25);
}

.sidebar-menu li.active a svg {
    stroke: var(--primary);
}

.sidebar-footer {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* Main Content Area */
.main-wrapper {
    margin-left: 290px;
    flex-grow: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header/Top Bar - Glassmorphism Light */
.top-header {
    height: 85px;
    background-color: rgba(248, 246, 240, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 45px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(13, 44, 36, 0.08);
    padding: 12px 20px;
    border-radius: 30px;
    width: 440px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-bar:focus-within {
    border-color: var(--accent);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(200, 169, 107, 0.12);
    width: 460px;
}

.search-bar svg {
    stroke: var(--text-muted);
    margin-right: 12px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.notification-badge {
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(13, 44, 36, 0.08);
    outline: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.notification-badge:hover {
    background: var(--bg-white);
    transform: scale(1.05);
    border-color: var(--accent);
}

.notification-badge svg {
    stroke: var(--primary);
    stroke-width: 1.5;
}

.notification-badge .badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #E06B5F;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-light);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 8px 18px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(13, 44, 36, 0.08);
    transition: var(--transition);
}

.user-profile:hover {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--accent);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    border: 2px solid rgba(200, 169, 107, 0.4);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info .user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.user-info .user-role {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Page Containers */
.page-container {
    padding: 45px;
    flex-grow: 1;
}

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

.page-header h2 {
    font-size: 34px;
    letter-spacing: -0.02em;
}

.page-header p {
    margin-top: 6px;
    font-size: 15px;
}

/* Premium Cards - Glassmorphism */
.admin-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    padding: 35px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.admin-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 169, 107, 0.25);
    transform: translateY(-2px);
}

/* Soft gold background glow on hover for selected cards */
.admin-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 169, 107, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 0;
}

.admin-card:hover::before {
    opacity: 1;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    gap: 12px;
    border: none;
    outline: none;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.btn-primary {
    background-color: var(--primary);
    background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    border: 1px solid rgba(255,255,255,0.05);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 44, 36, 0.25);
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: var(--accent);
    background-image: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(200, 169, 107, 0.3);
    filter: brightness(1.05);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--accent);
    background-color: var(--bg-white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #FFF3F2;
    border: 1px solid #FFDFDC;
    color: #E06B5F;
}

.btn-danger:hover {
    background-color: #E06B5F;
    color: white;
    box-shadow: 0 8px 20px rgba(224, 107, 95, 0.2);
    transform: translateY(-2px);
}

/* Elegant Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.8);
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--accent);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(200, 169, 107, 0.12);
}

/* Table Design */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.custom-table th {
    background-color: rgba(13, 44, 36, 0.03);
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    padding: 18px 24px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.custom-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-dark);
}

.custom-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.6);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: var(--shadow-sm);
}

.badge-success { background-color: #E6F8F2; color: #10B981; border: 1px solid #C2F1E1; }
.badge-warning { background-color: #FFFDF0; color: #F59E0B; border: 1px solid #FFF3C4; }
.badge-danger { background-color: #FFF5F4; color: #EF4444; border: 1px solid #FFE4E2; }
.badge-info { background-color: #F0F7FF; color: #3B82F6; border: 1px solid #DCEBFF; }

/* Dashboard Stat Cards Upgrade */
.stat-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--accent);
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(200, 169, 107, 0.1) 0%, rgba(200, 169, 107, 0.2) 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid rgba(200, 169, 107, 0.15);
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(200, 169, 107, 0.25);
    transform: rotate(-8deg) scale(1.05);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 5px;
    line-height: 1;
}

/* Activity Logs Design Upgrade */
.activity-item {
    display: flex;
    gap: 20px;
    border-left: 2px solid var(--border-color);
    padding-left: 24px;
    padding-bottom: 25px;
    position: relative;
}

.activity-item:last-child {
    padding-bottom: 0;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-light);
    box-shadow: 0 0 0 3px rgba(200, 169, 107, 0.2);
    transition: var(--transition);
}

.activity-item:hover::before {
    background: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(13, 44, 36, 0.15);
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Wizard Indicators Upgrade */
.step-indicator-item.active span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important;
    color: var(--primary) !important;
    box-shadow: 0 5px 15px rgba(200, 169, 107, 0.3) !important;
}

.step-indicator-item span {
    transition: var(--transition);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.animated {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
