/* 
 * VETA MUSIC - Custom Stylesheet
 * Premium Dark Theme optimized for Music Distribution Platform
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --v-dark-bg: #0b0f19;
    --v-darker: #050810;
    --v-dark-surface: #131b2f;
    --v-purple: #a855f7;
    --v-purple-light: #c084fc;
    --v-purple-dark: #7e22ce;
    --v-blue: #3b82f6;
    --v-blue-dark: #1d4ed8;
    --v-green: #22c55e;
    --v-green-dark: #15803d;
    --v-red: #ef4444;
    
    /* Text Colors */
    --v-text-main: #ffffff;
    --v-text-muted: #94a3b8;
    --v-text-light: #cbd5e1;
    
    /* Gradients */
    --v-gradient-primary: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    --v-gradient-green: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    --v-gradient-blue: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
    --v-gradient-dark: linear-gradient(180deg, rgba(15,23,42,0) 0%, #0b0f19 100%);
    
    /* UI Elements */
    --v-border: rgba(255, 255, 255, 0.1);
    --v-border-hover: rgba(255, 255, 255, 0.2);
    --v-glass: rgba(19, 27, 47, 0.7);
    --v-glass-border: rgba(255, 255, 255, 0.05);
}

/* Base Styles */
body.dark, 
body {
    background-color: var(--v-dark-bg);
    color: var(--v-text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Typography Helpers */
.text-purple { color: var(--v-purple) !important; }
.text-gray-300 { color: #cbd5e1 !important; }
.text-gray-400 { color: #94a3b8 !important; }
.text-gray-500 { color: #64748b !important; }
.text-gray-600 { color: #475569 !important; }

.text-gradient {
    background: var(--v-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-green {
    background: var(--v-gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-blue {
    background: var(--v-gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Helpers */
.bg-darker { background-color: var(--v-darker) !important; }
.bg-purple { background-color: var(--v-purple) !important; }
.bg-purple-dark { background-color: rgba(168, 85, 247, 0.1) !important; }
.bg-blue-dark { background-color: rgba(59, 130, 246, 0.1) !important; }
.bg-green-dark { background-color: rgba(34, 197, 94, 0.1) !important; }
.bg-gradient { background: var(--v-gradient-primary) !important; }
.bg-gradient-green { background: var(--v-gradient-green) !important; }

.border-white-10 { border-color: var(--v-border) !important; }

/* Components */
.glass-panel {
    background: var(--v-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--v-glass-border);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.btn-gradient {
    background: var(--v-gradient-primary);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
    color: white;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.transition { transition: all 0.3s ease; }

/* Custom Forms */
.custom-input {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.custom-input:focus {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border-color: var(--v-purple) !important;
    box-shadow: 0 0 0 0.25rem rgba(168, 85, 247, 0.25) !important;
}

.custom-input::placeholder { color: #64748b; }

.custom-select {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

.custom-select:focus {
    border-color: var(--v-purple) !important;
    box-shadow: 0 0 0 0.25rem rgba(168, 85, 247, 0.25) !important;
}

.custom-checkbox {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-checkbox:checked {
    background-color: var(--v-purple);
    border-color: var(--v-purple);
}

/* Floating labels dark override */
.custom-form-floating > label { color: #94a3b8; }
.custom-form-floating > .form-control:focus ~ label,
.custom-form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--v-purple-light);
    background-color: transparent !important;
}

/* Dropdown override */
.dropdown-menu-dark {
    background-color: var(--v-dark-surface);
    border: 1px solid var(--v-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Dashboard Sidebar */
.dashboard-body {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: var(--v-dark-surface);
    border-right: 1px solid var(--v-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1040;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--v-border);
}

.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 20px;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-menu .nav-item { margin-bottom: 5px; }

.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--v-text-muted);
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s;
}

.sidebar-menu .nav-link i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 15px;
    text-align: center;
    transition: all 0.3s;
}

.sidebar-menu .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-menu .nav-link:hover i { color: var(--v-purple-light); transform: scale(1.1); }

.sidebar-menu .nav-link.active {
    color: white;
    background: var(--v-gradient-primary);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.sidebar-menu .nav-link.active i { color: white; }

.main-content {
    flex-grow: 1;
    padding: 30px;
    margin-left: 280px;
    min-height: 100vh;
    background-color: var(--v-dark-bg);
    width: calc(100% - 280px);
}

/* Mobile Sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; width: 100%; padding: 15px; }
}

/* Blob Animations for Auth/Landing Pages */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

.auth-blob-1 { background: var(--v-purple); width: 400px; height: 400px; top: -100px; left: -100px; animation: float1 10s ease-in-out infinite; }
.auth-blob-2 { background: var(--v-blue); width: 400px; height: 400px; bottom: -100px; right: -100px; animation: float2 12s ease-in-out infinite alternate; }

/* Landing Page Elements */
.hero-section { position: relative; overflow: hidden; }
.hero-section .shape-1 { background: var(--v-purple); width: 50vw; height: 50vw; top: -10%; right: -10%; animation: float1 15s ease-in-out infinite; opacity: 0.3; }
.hero-section .shape-2 { background: var(--v-blue); width: 40vw; height: 40vw; bottom: 10%; left: -10%; animation: float2 18s ease-in-out infinite alternate; opacity: 0.2; }

.float-animation { animation: floatY 6s ease-in-out infinite; }
.absolute-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.floating-card {
    position: absolute;
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.card-1 { top: 10%; left: -10%; animation: floatY 8s ease-in-out infinite 1s; }
.card-2 { bottom: 10%; right: -5%; animation: floatY 7s ease-in-out infinite 2s; }

.blur-bg {
    background: rgba(11, 15, 25, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

@keyframes float1 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, -30px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Utilities */
.relative { position: relative; }
.z-1 { z-index: 1; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }

/* Badge Fix - make text visible */
.border-purple { border-color: var(--v-purple) !important; }
.badge.bg-purple { color: #fff !important; }
.badge.text-purple { color: var(--v-purple-light) !important; }

/* Glass panel & table - no unwanted scroll from dropdowns */
.glass-panel { overflow: visible !important; }
.glass-panel .card-body { overflow: visible !important; }
.glass-panel .table-responsive { overflow: visible !important; }
.admin-main .table-responsive { overflow: visible !important; }

/* Cover image responsive */
.cover-preview { width: 100%; max-width: 200px; height: auto; border-radius: 12px; object-fit: cover; aspect-ratio: 1/1; }

/* Upload progress bar */
.upload-progress { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.05); overflow: hidden; }
.upload-progress-bar { height: 100%; background: var(--v-gradient-primary); border-radius: 4px; transition: width 0.3s ease; }

/* Notification full text */
.notification-text { word-break: break-word; white-space: normal; }

/* Audio player dark theme */
.audio-player-container { background: rgba(255,255,255,0.03); border-radius: 12px; padding: 12px; border: 1px solid var(--v-border); }

