/**
 * BUKUIN - Dark Tech Midnight Blue Design System
 * Inspired by Modern Book Creation Workspace Mockup
 */

:root {
    --bg-main: #060b18;
    --bg-secondary: #0a1329;
    --bg-card: #0d1938;
    --bg-surface: #0d1938;
    --bg-card-hover: #12224d;
    --bg-input: #081024;
    --border-color: #172a54;
    --border-focus: #3b82f6;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-glow: rgba(37, 99, 235, 0.35);
    --cyan: #38bdf8;
    --purple: #8b5cf6;
    --emerald: #10b981;
    --amber: #f59e0b;
    --rose: #f43f5e;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.15);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-light);
}

/* App Layout Grid */
.app-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-main);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #070e22 0%, #040817 100%);
    border-right: 1px solid rgba(56, 189, 248, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 12px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), padding 0.28s ease;
    z-index: 50;
    box-sizing: border-box;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.35);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 18px 4px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 48px;
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    overflow: hidden;
}

.sidebar-logo-full {
    height: 35px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.sidebar-logo-icon {
    height: 32px;
    width: 32px;
    object-fit: contain;
    display: none;
}

.sidebar-collapse-btn, .topbar-toggle-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-collapse-btn:hover, .topbar-toggle-btn:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.35);
    color: var(--cyan);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 24px 8px;
    text-decoration: none;
}
.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary-glow);
}
.brand-icon svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}
.brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
}

.nav-section {
    margin-bottom: 24px;
    margin-bottom: 20px;
}
.nav-section-title {
    font-size: 11px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    padding: 0 12px 8px 12px;
    color: #475569;
    letter-spacing: 0.9px;
    padding: 0 12px 6px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    gap: 3px;
    margin: 0;
    padding: 0;
}
.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    transition: all 0.18s ease;
    position: relative;
    white-space: nowrap;
    text-decoration: none;
}
.nav-item a:hover {
    background-color: var(--bg-card);
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}
.nav-item.active a {
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.16) 0%, rgba(37, 99, 235, 0.06) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
    font-weight: 600;
    box-shadow: 0 2px 14px rgba(37, 99, 235, 0.2);
}
.nav-item.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}
.nav-item a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
    transition: transform 0.2s ease, stroke 0.2s ease;
}
.nav-item.active a svg {
    color: var(--cyan);
}

/* Navigation Accordion & Sub-Menus */
.nav-group {
    list-style: none;
    margin-bottom: 3px;
    display: flex;
    flex-direction: column;
}
.nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    transition: all 0.18s ease;
    position: relative;
}
.nav-group-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.nav-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.18s ease;
    position: relative;
    white-space: nowrap;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}
.nav-item-link:hover {
    color: #ffffff;
}
.nav-item-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
    transition: transform 0.2s ease, stroke 0.2s ease;
}
.nav-group.active > .nav-group-header .nav-item-link {
    color: #ffffff;
    font-weight: 600;
}
.nav-group.active > .nav-group-header .nav-item-link svg {
    color: var(--cyan);
}
.nav-group.active > .nav-group-header {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.16) 0%, rgba(37, 99, 235, 0.06) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 2px 14px rgba(37, 99, 235, 0.2);
}
.nav-group.active > .nav-group-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

/* Accordion Chevron Toggle */
.nav-chevron-btn {
    background: transparent;
    border: none;
    color: #64748b;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 6px;
    flex-shrink: 0;
}
.nav-chevron-btn:hover {
    color: var(--cyan);
    background: rgba(56, 189, 248, 0.12);
}
.nav-chevron-btn svg {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-group.open .nav-chevron-btn svg {
    transform: rotate(180deg);
}

/* Sub-Menu List & Indented Links */
.nav-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.26s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, margin 0.2s ease;
}
.nav-group.open .nav-sublist {
    max-height: 380px;
    opacity: 1;
    margin: 4px 0 6px 16px;
    padding-left: 10px;
    border-left: 1.5px solid rgba(56, 189, 248, 0.2);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-subitem {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-sublink {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
    border-radius: 7px;
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-sublink:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(3px);
}
.nav-subdot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #475569;
    flex-shrink: 0;
    transition: all 0.16s ease;
}
.nav-sublink:hover .nav-subdot {
    background: var(--cyan);
}
.nav-subitem.active .nav-sublink {
    color: var(--cyan);
    font-weight: 600;
    background: rgba(56, 189, 248, 0.12);
}
.nav-subitem.active .nav-subdot {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

/* Collapsed State */
html.sidebar-collapsed .nav-chevron-btn,
body.sidebar-collapsed .nav-chevron-btn,
html.sidebar-collapsed .nav-sublist,
body.sidebar-collapsed .nav-sublist {
    display: none !important;
}
html.sidebar-collapsed .nav-group-header,
body.sidebar-collapsed .nav-group-header {
    justify-content: center;
}
html.sidebar-collapsed .nav-item-link,
body.sidebar-collapsed .nav-item-link {
    justify-content: center;
    padding: 11px 0;
    gap: 0;
}
html.sidebar-collapsed .nav-item-link span,
body.sidebar-collapsed .nav-item-link span {
    display: none;
}
html.sidebar-collapsed .nav-item-link svg,
body.sidebar-collapsed .nav-item-link svg {
    width: 20px;
    height: 20px;
}
html.sidebar-collapsed .sidebar,
body.sidebar-collapsed .sidebar {
    width: 72px;
    padding: 20px 8px;
}
html.sidebar-collapsed .sidebar-header,
body.sidebar-collapsed .sidebar-header {
    padding: 0 0 16px 0;
    justify-content: center;
}
html.sidebar-collapsed .sidebar-logo-full,
body.sidebar-collapsed .sidebar-logo-full {
    display: none;
}
html.sidebar-collapsed .sidebar-logo-icon,
body.sidebar-collapsed .sidebar-logo-icon {
    display: block;
}
html.sidebar-collapsed .sidebar-collapse-btn,
body.sidebar-collapsed .sidebar-collapse-btn {
    display: none;
}
html.sidebar-collapsed .nav-section-title,
body.sidebar-collapsed .nav-section-title {
    opacity: 0;
    height: 1px;
    padding: 0;
    margin: 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
html.sidebar-collapsed .nav-item a,
body.sidebar-collapsed .nav-item a {
    justify-content: center;
    padding: 11px 0;
    gap: 0;
}
html.sidebar-collapsed .nav-item a span,
body.sidebar-collapsed .nav-item a span {
    display: none;
}
html.sidebar-collapsed .nav-item a svg,
body.sidebar-collapsed .nav-item a svg {
    width: 20px;
    height: 20px;
}
.sidebar-collapse-btn svg, .topbar-toggle-btn svg {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
html.sidebar-collapsed .topbar-toggle-btn svg,
body.sidebar-collapsed .topbar-toggle-btn svg {
    transform: rotate(180deg);
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Top Navbar */
.topbar {
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(10, 19, 41, 0.8);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.search-box {
    position: relative;
    width: 380px;
}
.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}
.search-input {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 9px 16px 9px 42px;
    color: var(--text-primary);
    font-size: 13px;
    transition: var(--transition);
}
.search-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 10px var(--primary-glow);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.notif-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.notif-btn:hover {
    background-color: var(--bg-card);
    color: #ffffff;
}
.notif-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--rose);
    border-radius: var(--radius-full);
    box-shadow: 0 0 6px var(--rose);
}

.user-profile-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px 14px 4px 4px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition);
}
.user-profile-pill:hover {
    border-color: var(--cyan);
}
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 1px solid var(--cyan);
}
.user-info {
    text-align: left;
}
.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}
.user-role-badge {
    font-size: 11px;
    color: var(--cyan);
}

/* Page Body */
.page-body {
    padding: 32px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Greeting Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}
.greeting-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}
.greeting-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}
.greeting-date {
    font-size: 13px;
    color: var(--cyan);
    font-weight: 500;
}

/* Quick Actions Cards */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.action-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.action-card:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    box-shadow: var(--shadow-glow);
    background-color: var(--bg-card-hover);
}
.action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.action-icon.blue { background: rgba(37, 99, 235, 0.2); color: #60a5fa; }
.action-icon.purple { background: rgba(139, 92, 246, 0.2); color: #c084fc; }
.action-icon.teal { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; }
.action-icon.cyan { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }

.action-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
}
.action-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Two Column Content */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Card Box */
.card-box, .card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    width: 100%;
    box-sizing: border-box;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.card-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

/* Project Item Row */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.project-row {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}
.project-row:hover {
    border-color: var(--primary-light);
    background-color: var(--bg-card-hover);
}
.project-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}
.project-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--cyan);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-details h4 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}
.project-details p {
    font-size: 12px;
    color: var(--text-muted);
}
.project-progress-wrap {
    width: 140px;
    margin: 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.progress-bar-bg {
    flex: 1;
    height: 6px;
    background-color: var(--bg-main);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--cyan) 100%);
    border-radius: var(--radius-full);
}
.progress-percent-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan);
    min-width: 34px;
}
.project-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.icon-action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}
.icon-action-btn:hover {
    color: #ffffff;
    border-color: var(--cyan);
}

/* Weekly Stats Box */
.stat-number-box {
    margin-bottom: 20px;
}
.stat-large-val {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.weekly-chart-bar-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    padding: 10px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}
.chart-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.bar-track {
    width: 14px;
    height: 90px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--cyan) 0%, var(--primary) 100%);
    border-radius: var(--radius-full);
    transition: height 0.6s ease;
}
.bar-day {
    font-size: 11px;
    color: var(--text-muted);
}

.quote-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(56, 189, 248, 0.05) 100%);
    border: 1px dashed rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    font-style: italic;
    font-size: 13px;
    color: #93c5fd;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge-admin { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid #2563eb; }
.badge-penulis { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid #0284c7; }
.badge-editor { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; border: 1px solid #0d9488; }
.badge-viewer { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid #475569; }

.badge-status-aktif { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid #059669; }
.badge-status-nonaktif { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid #dc2626; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.6);
    color: #ffffff;
}
.btn-secondary {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--cyan);
    color: #ffffff;
}
.btn-cyan {
    background: linear-gradient(90deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
}
.btn-danger {
    background-color: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #f87171;
}
.btn-danger:hover {
    background-color: #ef4444;
    color: #ffffff;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: #ffffff;
    font-size: 14px;
    transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 10px var(--primary-glow);
}
.form-select optgroup {
    background-color: #0b1329;
    color: #38bdf8;
    font-weight: 700;
    padding: 8px 10px;
    font-size: 13px;
}
.form-select option {
    background-color: #0f172a;
    color: #f1f5f9;
    padding: 8px 12px;
    font-weight: normal;
    font-size: 14px;
}
.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Alert Notification */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #34d399;
}
.alert-error {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #f87171;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 550px;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
}

/* Ultra-Luxury Premium Confirmation Modal */
.bukuin-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(2, 6, 18, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease-out;
}
.bukuin-confirm-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}
.bukuin-confirm-card {
    background: linear-gradient(155deg, rgba(14, 25, 54, 0.95) 0%, rgba(6, 12, 28, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 22px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    max-width: 440px;
    width: 100%;
    padding: 32px 28px 26px;
    text-align: center;
    position: relative;
    transform: scale(0.92) translateY(10px);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
}
.bukuin-confirm-backdrop.active .bukuin-confirm-card {
    transform: scale(1) translateY(0);
}
.bukuin-confirm-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.bukuin-confirm-icon-wrap.danger {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.05) 75%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.35);
    color: #f87171;
}
.bukuin-confirm-icon-wrap.warning {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.05) 75%);
    border: 1px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}
.bukuin-confirm-icon-wrap.info {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(56, 189, 248, 0.05) 75%);
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}
.bukuin-confirm-title {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}
.bukuin-confirm-message {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 24px;
    padding: 0 6px;
}
.bukuin-confirm-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}
.bukuin-btn-cancel {
    flex: 1;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.bukuin-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.bukuin-btn-confirm {
    flex: 1;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.bukuin-btn-confirm.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.45);
}
.bukuin-btn-confirm.danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.6);
}
.bukuin-btn-confirm.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(217, 119, 6, 0.45);
}
.bukuin-btn-confirm.warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(217, 119, 6, 0.6);
}
.bukuin-btn-confirm.info {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
}
.bukuin-btn-confirm.info:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.6);
}

/* Responsive */
@media (max-width: 1100px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .sidebar {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 260px !important;
        z-index: 1000;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.85);
        background: #080f22;
        padding: 24px 16px;
    }
    body.mobile-sidebar-open .sidebar {
        display: flex;
    }
    body.mobile-sidebar-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(4px);
        z-index: 999;
    }
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

