/* Import Font Modern dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #090d16;
    --card-bg: rgba(20, 26, 43, 0.6);
    --card-hover: rgba(30, 38, 61, 0.85);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-gradient: linear-gradient(135deg, #0099ff 0%, #0066ff 100%);
    --accent-color: #0088ff;
    --accent-hover: #0055ff;
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.15);
    z-index: 50;
}

/* Sidebar Styling */
.sidebar {
    background: rgba(13, 18, 33, 0.95);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    transition: all 0.3s ease;
}
.sidebar-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.sidebar-link:hover, .sidebar-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.sidebar-link.active {
    background: var(--primary-gradient);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

/* Gradient Text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Gradient Buttons */
.btn-gradient-primary {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}
.btn-gradient-primary:hover {
    color: #fff;
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* Glassmorphism Secondary Button */
.btn-glass-secondary {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    font-weight: 600;
    transition: all 0.25s ease;
}
.btn-glass-secondary:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Form Styling */
.form-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 12px 16px;
    transition: all 0.3s ease;
}
.form-glass:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
    color: var(--text-primary);
    outline: none;
}
.form-glass::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* File / Folder Grid Item */
.file-item-card {
    position: relative;
}
.file-item-card:focus-within {
    z-index: 1050;
}
.item-card {
    cursor: pointer;
    position: relative;
}
.item-card:focus-within {
    z-index: 1050;
}
.item-icon-wrapper {
    font-size: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}
.item-card:hover .item-icon-wrapper {
    background: rgba(255, 255, 255, 0.06);
}

/* Icon Colors */
.icon-folder  { color: #f59e0b; }
.icon-image   { color: #10b981; }
.icon-word    { color: #3b82f6; }
.icon-pdf     { color: #ef4444; }
.icon-archive { color: #f97316; }
.icon-other   { color: #94a3b8; }

/* Drag and Drop Zone */
.upload-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    transition: all 0.3s ease;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--accent-color);
    background: rgba(99, 102, 241, 0.05);
}

/* Breadcrumb Styling */
.breadcrumb-glass {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 12px;
}
.breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* Filter Pill Chips Terpisah */
.filter-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}
.filter-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.filter-tab.active {
    background: var(--primary-gradient) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* File Actions (Dropdown) */
.item-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}
.item-card:hover .item-actions {
    opacity: 1;
}

/* Halaman Login / Register Layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
                var(--bg-dark);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
}

/* Dashboard Layout */
.dashboard-content {
    padding: 24px;
}
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        width: 260px;
        z-index: 1040;
    }
    .sidebar.show {
        left: 0;
    }
}
