/* Energy Masters Cloud - Premium Black / Gold Glass Theme */

:root {
    --bg-primary: #050505;
    --bg-secondary: rgba(10, 10, 10, 0.88);
    --bg-card: rgba(18, 18, 18, 0.62);
    --bg-hover: rgba(255, 255, 255, 0.055);

    --glass: rgba(255, 255, 255, 0.045);
    --glass-strong: rgba(255, 255, 255, 0.075);
    --border-color: rgba(255, 255, 255, 0.09);
    --border-gold: rgba(201, 162, 74, 0.32);

    --text-primary: #f5f5f2;
    --text-secondary: #b1b1ad;
    --text-muted: #70706b;

    --accent: #c9a24a;
    --accent-hover: #dfbd67;
    --accent-soft: rgba(201, 162, 74, 0.13);

    --danger: #d96863;
    --warning: #c9a24a;
    --info: #a9a9a5;

    --sidebar-width: 260px;
    --header-height: 64px;
    --radius: 12px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.48);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg-primary);
}

body {
    background:
        radial-gradient(circle at 85% 5%, rgba(201, 162, 74, 0.055), transparent 28rem),
        radial-gradient(circle at 15% 90%, rgba(255, 255, 255, 0.025), transparent 24rem),
        var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--accent-hover);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--border-color);
    gap: 0.75rem;
}

.sidebar-brand .logo-icon {
    width: 36px;
    height: 36px;
    background: #000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 24px rgba(201, 162, 74, 0.16);
}

.sidebar-brand .logo-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.sidebar-brand .brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.sidebar-brand .brand-text span {
    color: var(--accent);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.55rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.68rem 0.85rem;
    border-radius: 9px;
    color: var(--text-secondary);
    font-size: 0.925rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 3px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-primary);
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(201, 162, 74, 0.15), rgba(201, 162, 74, 0.045));
    color: var(--accent);
    box-shadow: inset 2px 0 0 var(--accent);
}

.nav-link i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Main content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: var(--header-height);
    background: rgba(7, 7, 7, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-content {
    flex: 1;
    padding: 1.5rem;
}

/* Cards */
.card {
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.card-header {
    background: rgba(255, 255, 255, 0.015);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

/* Buttons */
.btn-accent {
    background: linear-gradient(135deg, #d6b45d, #b88e3a);
    border-color: #c9a24a;
    color: #080808;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(201, 162, 74, 0.12);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #e2c675, #c9a24a);
    border-color: var(--accent-hover);
    color: #050505;
    box-shadow: 0 10px 30px rgba(201, 162, 74, 0.2);
}

.btn-outline-accent {
    border-color: rgba(201, 162, 74, 0.55);
    color: var(--accent);
    background: transparent;
}

.btn-outline-accent:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-hover);
}

.btn-dark-soft {
    background: rgba(255, 255, 255, 0.045);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-dark-soft:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* Forms */
.form-control,
.form-select {
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 9px;
}

.form-control:focus,
.form-select:focus {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(201, 162, 74, 0.7);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--accent-soft), 0 0 24px rgba(201, 162, 74, 0.06);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

/* File grid */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.file-item {
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
}

.file-item:hover {
    border-color: var(--border-gold);
    background: rgba(201, 162, 74, 0.045);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.file-item .file-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.file-item .file-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item .file-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.file-item .file-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.file-item:hover .file-actions {
    opacity: 1;
}

/* Table dark */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--border-color);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.035);
}

.table thead th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom-width: 1px;
}

.table tbody tr {
    transition: background 0.18s ease;
}

/* Stats cards */
.stat-card {
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-card .stat-icon.green,
.stat-card .stat-icon.blue,
.stat-card .stat-icon.orange,
.stat-card .stat-icon.red {
    background: var(--accent-soft);
    color: var(--accent);
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Storage progress */
.storage-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.055);
    border-radius: 999px;
    overflow: hidden;
}

.storage-bar .progress-bar {
    background: linear-gradient(90deg, #a77e2e, #d6b45d);
    box-shadow: 0 0 14px rgba(201, 162, 74, 0.22);
}

/* Login page */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(201, 162, 74, 0.08), transparent 28rem),
        #050505;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(16, 16, 16, 0.66);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo .logo-icon {
    width: 56px;
    height: 56px;
    background: #000;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.08);
}

.auth-logo .logo-icon img {
    width: 70%;
    height: 70%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Dropzone */
.dropzone {
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.2s;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.dropzone.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 30px rgba(201, 162, 74, 0.08);
}

.dropzone i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.25rem;
}

.breadcrumb-item a {
    color: var(--text-secondary);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* Modal dark */
.modal-content {
    background: rgba(15, 15, 15, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-footer {
    border-top-color: var(--border-color);
}

.btn-close {
    filter: invert(1);
}

/* Alert */
.alert {
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-primary);
}

/* Badge */
.badge-role {
    font-size: 0.7rem;
    padding: 0.25em 0.6em;
    border-radius: 6px;
}

.badge-admin {
    background: rgba(201, 162, 74, 0.16);
    color: var(--accent-hover);
}

.badge-staff {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

/* Selection */
::selection {
    background: rgba(201, 162, 74, 0.28);
    color: #fff;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.68);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 999;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #292929;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}


/* Brand color overrides: Energy Masters uses gold, never Bootstrap green. */
.bg-success {
    background: linear-gradient(145deg, #d8b65d, #a77e2e) !important;
    color: #080808 !important;
}
.text-success {
    color: var(--accent) !important;
}


/* ========================================================================
   V6 LIQUID GLASS LAYER
   Visual-only upgrade. Existing database schema/data are intentionally kept.
   ======================================================================== */
:root {
    --v6-glass: rgba(255, 255, 255, 0.055);
    --v6-glass-2: rgba(255, 255, 255, 0.075);
    --v6-line: rgba(255, 255, 255, 0.105);
    --v6-line-soft: rgba(255, 255, 255, 0.065);
    --v6-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    --v6-radius: 18px;
}

html {
    background: #030303;
    color-scheme: dark;
}

body {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(700px 420px at 88% -5%, rgba(201, 162, 74, 0.075), transparent 68%),
        radial-gradient(650px 520px at 6% 92%, rgba(255, 255, 255, 0.035), transparent 72%),
        radial-gradient(500px 360px at 52% 45%, rgba(255, 255, 255, 0.018), transparent 75%),
        #030303;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(115deg, transparent 0 45%, rgba(255,255,255,0.012) 50%, transparent 55%),
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.018), transparent 34%);
    opacity: .9;
}

/* Glass sidebar */
.sidebar {
    background: rgba(7, 7, 7, 0.68);
    backdrop-filter: blur(32px) saturate(125%);
    -webkit-backdrop-filter: blur(32px) saturate(125%);
    border-right: 1px solid var(--v6-line-soft);
    box-shadow: 18px 0 70px rgba(0, 0, 0, 0.22);
}

.sidebar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,.12), transparent 30%, transparent 70%, rgba(201,162,74,.12));
    pointer-events: none;
}

.sidebar-brand {
    border-bottom-color: var(--v6-line-soft);
    background: linear-gradient(180deg, rgba(255,255,255,.018), transparent);
}

.sidebar-brand .logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.35);
}

.sidebar-brand .logo-icon img {
    width: 26px;
    height: 26px;
}

.nav-link {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: .72rem .85rem;
}

.nav-link:hover {
    background: rgba(255,255,255,.045);
    border-color: rgba(255,255,255,.045);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(201,162,74,.13), rgba(255,255,255,.035));
    border-color: rgba(201,162,74,.16);
    box-shadow: inset 2px 0 0 var(--accent), inset 0 1px 0 rgba(255,255,255,.04), 0 10px 28px rgba(0,0,0,.16);
}

.sidebar-footer {
    border-top-color: var(--v6-line-soft);
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.018));
}

/* Top bar */
.topbar {
    background: rgba(7,7,7,.58);
    backdrop-filter: blur(30px) saturate(135%);
    -webkit-backdrop-filter: blur(30px) saturate(135%);
    border-bottom-color: var(--v6-line-soft);
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

.topbar h5 {
    letter-spacing: -.02em;
}

.page-content {
    padding: 1.75rem;
}

/* Liquid glass surfaces */
.card,
.stat-card,
.file-item {
    background: linear-gradient(145deg, rgba(255,255,255,.068), rgba(255,255,255,.025));
    border-color: var(--v6-line-soft);
    box-shadow: var(--v6-shadow), inset 0 1px 0 rgba(255,255,255,.045);
    backdrop-filter: blur(26px) saturate(125%);
    -webkit-backdrop-filter: blur(26px) saturate(125%);
}

.card {
    border-radius: var(--v6-radius);
}

.card::before,
.stat-card::before,
.file-item::before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255,255,255,.035), transparent 30%, transparent 70%, rgba(201,162,74,.025));
    opacity: .8;
}

.card {
    position: relative;
}

.card:hover,
.file-item:hover,
.stat-card:hover {
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 34px 100px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.055);
}

.card-header {
    background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008));
    border-bottom-color: var(--v6-line-soft);
}

.card-body {
    position: relative;
}

/* Buttons: solid gold action + glass secondary */
.btn-accent {
    border-radius: 11px;
    background: linear-gradient(135deg, #dfbf6b, #b88d35);
    border-color: rgba(255,255,255,.08);
    box-shadow: 0 12px 32px rgba(201,162,74,.15), inset 0 1px 0 rgba(255,255,255,.25);
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 38px rgba(201,162,74,.22), inset 0 1px 0 rgba(255,255,255,.28);
}

.btn-dark-soft {
    border-radius: 11px;
    background: rgba(255,255,255,.045);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-color: rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.btn-dark-soft:hover {
    background: rgba(255,255,255,.075);
}

.btn-outline-accent {
    border-radius: 11px;
    background: rgba(201,162,74,.035);
}

/* Inputs */
.form-control,
.form-select {
    border-radius: 11px;
    background: rgba(0,0,0,.34);
    border-color: rgba(255,255,255,.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.form-control:focus,
.form-select:focus {
    background: rgba(0,0,0,.42);
}

/* Stats */
.stat-card {
    min-height: 102px;
    border-radius: 16px;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(201,162,74,.16), rgba(255,255,255,.035));
    border: 1px solid rgba(201,162,74,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.stat-card .stat-icon.green,
.stat-card .stat-icon.blue,
.stat-card .stat-icon.orange,
.stat-card .stat-icon.red {
    background: linear-gradient(145deg, rgba(201,162,74,.16), rgba(255,255,255,.035));
    color: var(--accent);
}

/* Dashboard V6 */
.dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: .35rem .1rem .25rem;
}

.eyebrow,
.section-kicker {
    color: rgba(201,162,74,.78);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.dashboard-title {
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
    letter-spacing: -.045em;
    margin: .35rem 0 .4rem;
    font-weight: 700;
}

.dashboard-subtitle {
    color: var(--text-muted);
    font-size: .92rem;
}

.dashboard-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.section-title {
    display: block;
    margin-top: .22rem;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -.015em;
}

.v6-panel {
    overflow: hidden;
}

.v6-files-table thead th {
    padding-top: .9rem;
    padding-bottom: .9rem;
}

.v6-files-table tbody td {
    padding-top: .95rem;
    padding-bottom: .95rem;
}

.mini-file-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--accent);
    background: linear-gradient(145deg, rgba(201,162,74,.13), rgba(255,255,255,.025));
    border: 1px solid rgba(201,162,74,.12);
}

.empty-state {
    text-align: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.empty-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: linear-gradient(145deg, rgba(201,162,74,.14), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    font-size: 1.35rem;
}

.storage-card {
    background:
        radial-gradient(circle at 92% 8%, rgba(201,162,74,.10), transparent 45%),
        linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
}

.storage-number {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.04em;
}

.storage-percent {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 700;
}

.storage-bar {
    height: 9px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.035);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.45);
}

.storage-bar .progress-bar {
    background: linear-gradient(90deg, #9d762b, #e0bf69);
    box-shadow: 0 0 20px rgba(201,162,74,.28);
}

.storage-meta {
    display: grid;
    gap: .85rem;
}

.storage-meta > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(255,255,255,.055);
    font-size: .82rem;
}

.storage-meta span { color: var(--text-muted); }
.storage-meta strong { font-weight: 600; }

.storage-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-radius: 12px;
    color: var(--text-primary);
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.06);
    transition: .2s ease;
}

.storage-cta:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,.065);
    border-color: rgba(201,162,74,.18);
}

/* File browser */
.file-item {
    border-radius: 16px;
    padding: 1.35rem 1rem;
}

.file-item .file-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto .8rem;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(201,162,74,.13), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.055);
    font-size: 1.65rem;
}

.file-item:hover {
    transform: translateY(-3px);
}

/* Tables */
.table thead th {
    background: rgba(255,255,255,.012);
}

.table tbody tr:hover {
    background: rgba(255,255,255,.028);
}

/* Auth / shared-link surfaces */
.auth-wrapper {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(520px 420px at 50% 15%, rgba(201,162,74,.085), transparent 70%),
        radial-gradient(500px 420px at 5% 95%, rgba(255,255,255,.028), transparent 72%),
        #030303;
}

.auth-wrapper::before,
.auth-wrapper::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
    opacity: .16;
}

.auth-wrapper::before {
    background: rgba(201,162,74,.24);
    top: -240px;
    left: -180px;
}

.auth-wrapper::after {
    background: rgba(255,255,255,.12);
    right: -240px;
    bottom: -250px;
}

.auth-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.028));
    backdrop-filter: blur(34px) saturate(130%);
    -webkit-backdrop-filter: blur(34px) saturate(130%);
    border-color: rgba(255,255,255,.095);
    border-radius: 22px;
    box-shadow: 0 40px 120px rgba(0,0,0,.66), inset 0 1px 0 rgba(255,255,255,.06);
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 21px;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,.035), transparent 28%, transparent 72%, rgba(201,162,74,.025));
}

.auth-logo .logo-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #000;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 40px rgba(0,0,0,.4);
}

.auth-logo .logo-icon img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

/* Shared file icon + cards remain black behind the white logo. */
.auth-card .logo-icon {
    background: #000;
}

/* Modals / dropdowns */
.modal-content,
.dropdown-menu {
    background: rgba(13,13,13,.82);
    backdrop-filter: blur(28px) saturate(125%);
    -webkit-backdrop-filter: blur(28px) saturate(125%);
    border: 1px solid rgba(255,255,255,.085);
    box-shadow: 0 35px 100px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.045);
}

.modal-content { border-radius: 18px; }
.dropdown-menu { border-radius: 13px; }

.dropzone {
    background: rgba(255,255,255,.025);
    border-color: rgba(255,255,255,.12);
    border-radius: 16px;
}

.dropzone:hover,
.dropzone.dragover {
    background: rgba(201,162,74,.055);
    border-color: rgba(201,162,74,.35);
}

/* Badges */
.badge-role {
    border: 1px solid rgba(201,162,74,.14);
    background: rgba(201,162,74,.09);
}

/* Mobile */
@media (max-width: 767.98px) {
    .page-content { padding: 1rem; }
    .dashboard-hero { align-items: flex-start; flex-direction: column; }
    .dashboard-actions { width: 100%; }
    .dashboard-actions .btn { flex: 1; }
    .dashboard-title { font-size: 1.65rem; }
    .auth-card { padding: 2rem 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* V7 - liquid-glass interaction layer */
.glass-panel,.v7-panel,.workspace-switcher{
    background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.025) 55%,rgba(201,162,74,.025));
    border:1px solid rgba(255,255,255,.10);
    box-shadow:inset 0 1px rgba(255,255,255,.07),0 24px 70px rgba(0,0,0,.28);
    backdrop-filter:blur(24px) saturate(135%);
    -webkit-backdrop-filter:blur(24px) saturate(135%);
}
.v7-file-card,.v7-member-row,.glass-breadcrumb{
    backdrop-filter:blur(18px) saturate(125%);
    -webkit-backdrop-filter:blur(18px) saturate(125%);
}
.v7-file-card{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.v7-file-card:hover{transform:translateY(-2px);border-color:rgba(201,162,74,.25);box-shadow:0 18px 50px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.08)}
.modal-content{background:rgba(16,16,16,.82)!important;border:1px solid rgba(255,255,255,.11)!important;box-shadow:0 30px 90px rgba(0,0,0,.55);backdrop-filter:blur(28px) saturate(135%);-webkit-backdrop-filter:blur(28px) saturate(135%)}
.dropdown-menu-dark{background:rgba(18,18,18,.88);border-color:rgba(255,255,255,.10);backdrop-filter:blur(20px)}
