/* ==========================================================================
   Drive Google Manager - Modern Premium Dark CSS Theme
   ========================================================================== */

:root {
    --bg-primary: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.75);
    --bg-card-hover: rgba(51, 65, 85, 0.85);
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-glow: 0 10px 30px -10px rgba(99, 102, 241, 0.3);
}

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

body {
    font-family: var(--font-family);
    background: radial-gradient(circle at top left, #1e1b4b, #0f172a 60%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 40px;
    line-height: 1.6;
}

/* App Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
}

/* Navbar Header (Sticky Header) */
.navbar {
    position: sticky;
    top: 16px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.8rem;
}

.brand h1 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 12px;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    box-shadow: var(--shadow-glow);
}

/* Cards & Sections */
.section {
    margin-bottom: 30px;
}

.margin-top {
    margin-top: 30px;
}

.margin-top-sm {
    margin-top: 12px;
}

.section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title-wrapper h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.card-header {
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
}

.card-header .subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Storage Cards Grid */
.storage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.storage-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.storage-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
}

.storage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.storage-card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.storage-email {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.storage-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.highlight-text {
    color: #60a5fa;
    font-size: 1.1rem;
}

.progress-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 6px;
}

.badge-telegram {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.4);
}

.badge-web {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

/* Drag & Drop Upload Zone */
.drop-zone {
    border: 2px dashed rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    background: rgba(15, 23, 42, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.01);
}

.drop-zone-icon {
    font-size: 3rem;
}

.drop-zone-text {
    font-size: 1.05rem;
    color: var(--text-main);
}

.browse-link {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: underline;
}

.file-limit-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.file-input-hidden {
    display: none;
}

/* Selected File Preview Card */
.file-preview-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: 16px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 1.8rem;
}

.file-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.file-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-cancel {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-cancel:hover {
    color: var(--accent-danger);
}

/* Form Controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-input {
    max-width: 250px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-danger {
    background: var(--accent-danger);
    color: white;
}

.btn-action {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-action:hover {
    background: var(--accent-blue);
    color: white;
}

.btn-block {
    width: 100%;
}

.form-actions {
    margin-top: 20px;
}

/* Progress Bar */
.progress-wrapper {
    margin-top: 16px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transition: width 0.3s ease, background-color 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-info { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-secondary { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }

.badge-btn {
    border: none;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Data Table */
.table-responsive {
    overflow-x: auto;
    margin-top: 10px;
}

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

.data-table th {
    padding: 12px 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.file-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.empty-msg {
    color: var(--text-muted);
    padding: 30px !important;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert-success { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); color: #34d399; }
.alert-danger { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.3); color: #f87171; }
.alert-warning { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); color: #fbbf24; }
.alert-info { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.3); color: #60a5fa; }

.link {
    color: #60a5fa;
    text-decoration: underline;
}

/* Grid Layout Helper */
.grid-layout {
    display: grid;
    gap: 20px;
}

.grid-2col {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .grid-2col {
        grid-template-columns: 1fr;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    width: 90%;
    max-width: 480px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.test-result {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.text-center { text-align: center; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-muted { color: var(--text-muted); }

/* ==========================================================================
   Phase 3 CSS: Auth, User Management, Badges, Audit Trail & Quota Bars
   ========================================================================== */

/* User Profile Badge in Navbar */
.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Badges */
.badge-admin {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-user {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-primary { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

/* Buttons Extra Small & Danger */
.btn-xs {
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #f87171;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fff;
}

.btn-outline-info {
    background: transparent;
    border: 1px solid rgba(6, 182, 212, 0.5);
    color: #22d3ee;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-info:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: #06b6d4;
    color: #fff;
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #60a5fa;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #fff;
}

.btn-outline-success {
    background: transparent;
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-success:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #fff;
}

.btn-outline-warning {
    background: transparent;
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-warning:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #fff;
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #cbd5e1;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: #94a3b8;
    color: #fff;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Auth Page (Login & Register) */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    padding: 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    font-size: 3rem;
    margin-bottom: 8px;
}

.auth-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

.admin-notice {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.admin-notice code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #f59e0b;
}

/* User Quota Card & Progress Bars */
.user-quota-card {
    padding: 20px;
    border-left: 4px solid var(--accent-indigo);
}

.quota-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.user-quota-stats {
    font-size: 0.95rem;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.progress-bar-fill.warning { background: linear-gradient(90deg, #f59e0b, #d97706); }
.progress-bar-fill.danger { background: linear-gradient(90deg, #ef4444, #dc2626); }

.quota-usage-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}

.quota-usage-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* Modals for User Edit */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 16px;
    box-sizing: border-box;
}

.modal-card {
    width: 95%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
}

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

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Checkbox group */
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pagination-links {
    display: flex;
    gap: 6px;
}

.margin-bottom-md { margin-bottom: 20px; }
.margin-bottom-xs { margin-bottom: 8px; }
.margin-top-xs { margin-top: 8px; }
.margin-top-sm { margin-top: 12px; }
.margin-top-md { margin-top: 20px; }
.flex-row { display: flex; flex-direction: row; }
.gap-sm { gap: 10px; }

.brand-text-full { display: inline; }
.brand-text-short { display: none; }

/* ==========================================================================
   Native Mobile App Responsive Layout & Bottom Navigation Bar
   ========================================================================== */

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .brand-text-full { display: none; }
    .brand-text-short { display: inline; }

    /* Fixed Native Mobile Bottom Navigation Bar */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        height: 64px;
        background: rgba(15, 23, 42, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 4px 6px;
        padding-bottom: max(4px, env(safe-area-inset-bottom));
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 500;
        flex: 1;
        padding: 6px 0;
        border-radius: var(--radius-md);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .bottom-nav-icon {
        font-size: 1.25rem;
        margin-bottom: 2px;
        transition: transform 0.2s ease;
    }

    .bottom-nav-item.active {
        color: #ffffff;
        background: rgba(99, 102, 241, 0.25);
    }

    .bottom-nav-item.active .bottom-nav-icon {
        transform: translateY(-2px) scale(1.1);
    }

    /* Body & Main App Container Safe Area */
    body {
        padding-bottom: 80px !important;
    }

    .app-container {
        padding: 10px 10px 85px 10px;
    }

    /* Compact Top Header Navbar for Mobile (Zero Collision Layout Sticky) */
    .navbar {
        position: sticky;
        top: 8px;
        z-index: 1000;
        padding: 8px 10px;
        margin-bottom: 16px;
        border-radius: var(--radius-md);
        background: rgba(15, 23, 42, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
    }


    .brand {
        gap: 6px;
        flex-shrink: 1;
        min-width: 0;
    }

    .brand h1 {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo-icon {
        font-size: 1.3rem;
    }

    .user-profile-badge {
        padding: 4px 6px;
        gap: 4px;
        flex-shrink: 0;
    }

    .user-name {
        font-size: 0.75rem;
        max-width: 70px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Storage Grid & Cards */
    .storage-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .glass-card {
        padding: 16px;
        border-radius: var(--radius-md);
    }

    .section-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-title-wrapper h2 {
        font-size: 1.1rem;
    }

    .card-header h2 {
        font-size: 1.15rem;
    }

    .user-quota-card {
        padding: 16px;
    }

    .quota-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Form Inputs & Touch Targets */
    .form-control, .btn {
        min-height: 44px;
        font-size: 0.95rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .drop-zone {
        padding: 24px 16px;
    }

    /* Table Scroll & Buttons */
    .table-responsive {
        border-radius: var(--radius-sm);
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
    }

    .data-table th, .data-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .filter-form {
        flex-direction: column;
        gap: 10px;
    }

    .filter-form .form-group {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .user-name {
        display: none;
    }
}

/* Clickable Profile Badge Trigger */
.clickable-profile {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.clickable-profile:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* Profile Modal & Storage Info Box */
.profile-modal-card {
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
}

.profile-info-box {
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    border-left: 3px solid var(--accent-blue);
    border-radius: var(--radius-md);
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 4px 0;
}

.form-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 12px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.text-info { color: #60a5fa; }
.text-success { color: #34d399; }
.pt-xs { padding-top: 8px; }

/* OTP Input & Resend Button */
.otp-input {
    font-size: 1.8rem !important;
    letter-spacing: 12px;
    font-weight: 700;
    color: var(--accent-blue) !important;
    background: rgba(15, 23, 42, 0.7) !important;
    border: 2px solid var(--accent-blue) !important;
    border-radius: var(--radius-md) !important;
    padding: 10px 16px !important;
    height: 56px !important;
}

.btn-link-action {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

.btn-link-action:hover {
    color: #818cf8;
}

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

.gap-xs {
    gap: 4px;
}

/* Category Tabs & Badges */
.category-tabs-wrapper {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

.category-tab {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-tab:hover, .category-tab.active {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
}

.badge-cat-image { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.badge-cat-video { background: rgba(236, 72, 153, 0.2); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.4); }
.badge-cat-audio { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.badge-cat-doc { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-cat-archive { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-cat-other { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.4); }

/* Folder Bar & Folder Tabs Styling */
.folder-bar-container {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.folder-pills-wrapper {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.folder-tab {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.folder-tab:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.4);
}

.folder-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.folder-count-badge {
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 10px;
}

.badge-folder {
    background: rgba(147, 51, 234, 0.15);
    color: #c084fc;
    border: 1px solid rgba(147, 51, 234, 0.35);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* PWA Install Button Styling */
.btn-pwa-install {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.btn-pwa-install:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Sleek Pill-shaped Visibilitas Badges & Buttons */
.badge-vis-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    line-height: 1.2;
    user-select: none;
    outline: none;
}

.badge-vis-public {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.35);
}

.badge-vis-public:hover {
    background: rgba(16, 185, 129, 0.3);
    color: #ffffff;
    border-color: #34d399;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.badge-vis-private {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
}

.badge-vis-private:hover {
    background: rgba(245, 158, 11, 0.3);
    color: #ffffff;
    border-color: #fbbf24;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}







