/**
 * SilentScript GoFile - Platform Stylesheet
 * Brand: SilentScript (Dark Charcoal & Obsidian with Violet / Radiant Purple)
 * Domain: https://gofile.silentscript.site
 */

:root {
    --bg-base: #0d0e12;
    --bg-surface: #14161e;
    --bg-surface-elevated: #1a1e2a;
    --bg-surface-subtle: #222636;
    
    --purple-primary: #8b5cf6;
    --purple-hover: #7c3aed;
    --purple-dark: #6d28d9;
    --purple-glow: rgba(139, 92, 246, 0.35);
    --purple-subtle: rgba(139, 92, 246, 0.12);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-purple: rgba(139, 92, 246, 0.3);

    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
}

.page-content {
    flex: 1 0 auto;
}

/* Backgrounds & Glassmorphism */
.bg-dark-obsidian {
    background-color: var(--bg-base);
}

.bg-dark-deep {
    background-color: var(--bg-surface);
}

.bg-dark-blur {
    background: rgba(13, 14, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.glass-card {
    background: rgba(20, 22, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
}

/* Purple Highlights & Gradients */
.text-purple {
    color: var(--purple-primary) !important;
}

.hover-purple:hover {
    color: var(--purple-primary) !important;
}

.bg-purple-subtle {
    background-color: var(--purple-subtle) !important;
}

.border-purple-subtle {
    border: 1px solid var(--border-purple) !important;
}

.bg-purple-gradient {
    background: linear-gradient(135deg, #a78bfa, #7c3aed) !important;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-purple {
    box-shadow: 0 10px 25px -5px var(--purple-glow) !important;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.6rem 1.4rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 6px 20px var(--purple-glow);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-outline-purple {
    background: transparent;
    border: 1px solid var(--purple-primary);
    color: var(--purple-primary);
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-outline-purple:hover {
    background: var(--purple-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--purple-glow);
}

/* Hero Section */
.hero-glow-bg {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(13, 14, 18, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-heading {
    letter-spacing: -0.03em;
    font-weight: 800;
}

/* Brand Logo */
.brand-logo-glow {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.badge-sub {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 4px;
}

/* Dropzone */
.dropzone-area {
    border: 2px dashed rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    background: rgba(13, 14, 18, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropzone-area:hover, .dropzone-area.drag-active {
    border-color: var(--purple-primary);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.upload-icon-pulse {
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Custom Inputs */
.custom-input {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
}

.custom-input:focus {
    border-color: var(--purple-primary) !important;
    box-shadow: 0 0 0 3px var(--purple-subtle) !important;
}

/* Progress Bars */
.custom-progress {
    background-color: var(--bg-surface-subtle);
    border-radius: 10px;
    overflow: hidden;
}

/* File Icon Badges */
.file-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.file-mini-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.category-archive { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.category-video   { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.category-audio   { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.category-image   { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.category-pdf     { background: rgba(220, 38, 38, 0.15); color: #dc2626; }
.category-code    { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.category-file    { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

/* Preview box */
.file-preview-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 10px;
}

.preview-media {
    max-height: 480px;
    object-fit: contain;
}

/* Tables */
.custom-table {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-color);
}

.custom-table th {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--purple-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Error Pages */
.error-icon {
    font-size: 4rem;
    color: #ef4444;
}

.error-badge {
    font-size: 6rem;
    font-weight: 900;
    color: rgba(139, 92, 246, 0.4);
    letter-spacing: -2px;
}
