/* OC File Uploader Cyber/Dark Stylesheet */
:root {
    --bg-main: #0a0d14;
    --bg-card: rgba(18, 24, 38, 0.85);
    --bg-card-hover: rgba(26, 35, 54, 0.95);
    --border-color: rgba(0, 255, 204, 0.2);
    --border-glow: rgba(0, 255, 204, 0.4);
    --accent-cyan: #00ffcc;
    --accent-blue: #00b4d8;
    --accent-purple: #9d4edd;
    --accent-orange: #ff9e00;
    --accent-red: #ff3366;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-glow: 0 0 25px rgba(0, 255, 204, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Glows */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
}
.bg-glow-1 {
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.12), transparent 70%);
}
.bg-glow-2 {
    bottom: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.12), transparent 70%);
}

.app-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-glow);
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}
.logo-icon {
    font-size: 22px;
}
.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}
.brand-text h1 span {
    color: var(--accent-cyan);
}
.badge-portal {
    font-size: 11px;
    background: rgba(0, 255, 204, 0.1);
    color: var(--accent-cyan);
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), #00c896);
    color: #06101e;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 204, 0.4);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}
.btn-danger {
    background: rgba(255, 51, 102, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(255, 51, 102, 0.3);
}
.btn-danger:hover {
    background: var(--accent-red);
    color: #ffffff;
}
.btn-glow {
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.25);
}
.btn-block {
    width: 100%;
}
.btn-lg {
    padding: 14px 24px;
    font-size: 16px;
}

/* User pill */
.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 30px;
}
.user-pill .username {
    font-weight: 600;
    color: var(--accent-cyan);
}

/* Share Banner */
.share-banner {
    margin-bottom: 24px;
    animation: fadeIn 0.4s ease;
}
.share-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.1), rgba(157, 78, 221, 0.1));
    border: 2px solid var(--accent-cyan);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.2);
}
.share-icon {
    font-size: 40px;
}
.share-details {
    flex: 1;
}
.share-details h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 4px;
}
.share-details p {
    font-size: 14px;
    color: var(--text-muted);
}
.share-desc {
    margin-top: 6px;
    color: var(--accent-cyan) !important;
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.nav-btn:hover {
    color: #fff;
    background: var(--bg-card-hover);
    border-color: rgba(0, 255, 204, 0.3);
}
.nav-btn.active {
    color: var(--accent-cyan);
    background: rgba(0, 255, 204, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.15);
}
.badge-count {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
}
.nav-btn.active .badge-count {
    background: var(--accent-cyan);
    color: #06101e;
}

/* Tab Panes */
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Upload Drop Zone */
.upload-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-glow);
}
.drop-zone {
    border: 2px dashed rgba(0, 255, 204, 0.4);
    border-radius: var(--radius-md);
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(0, 255, 204, 0.02);
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--accent-cyan);
    background: rgba(0, 255, 204, 0.08);
    transform: scale(1.01);
}
.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.drop-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    background: rgba(0, 255, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
}
.drop-icon {
    font-size: 32px;
}
.drop-content h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #fff;
    margin-bottom: 6px;
}
.drop-content p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 12px;
}
.browse-link {
    color: var(--accent-cyan);
    font-weight: 600;
    text-decoration: underline;
}
.drop-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* File Config Panel */
.file-config-panel {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.3s ease;
}
.selected-file-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 255, 204, 0.3);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}
.file-preview-icon {
    font-size: 28px;
}
.file-preview-details {
    flex: 1;
}
.file-preview-details .file-name {
    display: block;
    font-weight: 600;
    color: #fff;
    font-size: 15px;
}
.file-preview-details .file-size {
    font-size: 13px;
    color: var(--accent-cyan);
}
.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}
.btn-icon:hover {
    color: var(--accent-red);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}
.highlight-group {
    background: rgba(0, 255, 204, 0.05);
    border: 1px solid rgba(0, 255, 204, 0.25);
    padding: 16px;
    border-radius: var(--radius-sm);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 15, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.2s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.25);
}
select.form-control {
    cursor: pointer;
}

/* Radio Cards */
.radio-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.radio-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}
.radio-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 255, 204, 0.3);
}
.radio-card input[type="radio"]:checked + .radio-card-body .radio-title {
    color: var(--accent-cyan);
}
.radio-card-body {
    display: flex;
    flex-direction: column;
}
.radio-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.radio-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Progress bar */
.progress-container {
    margin-bottom: 20px;
}
.progress-bar-wrapper {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 4px;
    transition: width 0.2s ease;
}
.progress-text {
    font-size: 13px;
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Pane Header & Search */
.pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}
.pane-title h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #fff;
}
.pane-title p {
    font-size: 14px;
    color: var(--text-muted);
}
.search-input {
    min-width: 280px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
}
.search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}

/* Files Grid & Cards */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}
.file-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 20px;
    backdrop-filter: blur(12px);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.file-card:hover {
    border-color: rgba(0, 255, 204, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.file-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}
.file-icon-box {
    font-size: 32px;
    line-height: 1;
}
.file-meta-header {
    flex: 1;
    overflow: hidden;
}
.file-meta-header h4 {
    font-size: 16px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-submeta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}
.file-desc-text {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.file-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-public {
    background: rgba(0, 255, 204, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 255, 204, 0.3);
}
.badge-private {
    background: rgba(157, 78, 221, 0.12);
    color: #c77dff;
    border: 1px solid rgba(157, 78, 221, 0.3);
}
.badge-expiry {
    background: rgba(255, 158, 0, 0.12);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 158, 0, 0.3);
}
.badge-expired {
    background: rgba(255, 51, 102, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(255, 51, 102, 0.3);
}
.badge-never {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.file-card-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
    flex-wrap: wrap;
}
.file-card-actions .btn {
    padding: 6px 12px;
    font-size: 13px;
}

/* Empty & Auth Notices */
.empty-state, .auth-notice {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    grid-column: 1 / -1;
}
.notice-icon, .empty-icon {
    font-size: 48px;
    margin-bottom: 14px;
    display: inline-block;
}
.auth-notice h3, .empty-state h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 8px;
}
.auth-notice p, .empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 450px;
    margin: 0 auto 20px;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.hidden {
    display: none;
}
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 7, 13, 0.8);
    backdrop-filter: blur(8px);
}
.modal-dialog {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: #111726;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    animation: zoomIn 0.25s ease;
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}
.modal-close:hover {
    color: #fff;
}
.modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}
.modal-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.modal-tab.active {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}
.auth-form {
    display: none;
}
.auth-form.active {
    display: block;
}
.share-link-box {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: #151d30;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideLeft 0.3s ease;
}
.toast-success {
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.2);
}
.toast-error {
    border-color: var(--accent-red);
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.2);
}
@keyframes slideLeft {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Footer */
.app-footer {
    margin-top: auto;
    text-align: center;
    padding: 24px 0 8px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

/* Hidden helper */
.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .radio-cards {
        grid-template-columns: 1fr;
    }
    .pane-header {
        flex-direction: column;
        align-items: stretch;
    }
    .search-input {
        width: 100%;
    }
}


/* Category styling additions */
.nav-btn-right {
    margin-left: auto;
    border-color: rgba(157, 78, 221, 0.3);
    color: #c77dff;
}
.nav-btn-right:hover {
    border-color: var(--accent-purple);
    color: #fff;
}
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.label-row label {
    margin-bottom: 0;
}
.btn-inline-link {
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
.btn-inline-link:hover {
    color: #fff;
}

/* Category Filter Pills */
.category-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.filter-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}
.category-pills {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.cat-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}
.cat-pill.active {
    background: rgba(0, 255, 204, 0.12);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}
.cat-pill-count {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 6px;
    border-radius: 10px;
}

/* Category Badges on Cards */
.badge-category {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Category Modal */
.modal-dialog-lg {
    max-width: 600px;
}
.category-edit-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 24px;
}
.category-edit-box h4, .existing-categories-wrapper h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #fff;
    margin-bottom: 12px;
}
.form-row {
    display: flex;
    gap: 12px;
}
.flex-1 { flex: 1; }
.w-icon { width: 140px; }
.w-color { width: 90px; }
.color-picker {
    height: 42px;
    padding: 4px;
    cursor: pointer;
}
.form-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 240px;
    overflow-y: auto;
}
.category-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
}
.category-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cat-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.category-item-actions {
    display: flex;
    gap: 6px;
}
.btn-sm-icon {
    padding: 4px 8px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 4px;
    cursor: pointer;
}
.btn-sm-icon:hover {
    background: rgba(255, 255, 255, 0.12);
}
