/* =====================================================
   Zovi Share - Custom Stylesheet
   Modern Pay-Per-Download Platform
   ===================================================== */

:root {
    --zovi-primary: #6366f1;
    --zovi-primary-dark: #4f46e5;
    --zovi-secondary: #64748b;
    --zovi-success: #10b981;
    --zovi-danger: #ef4444;
    --zovi-warning: #f59e0b;
    --zovi-info: #06b6d4;
    --zovi-dark: #1e293b;
    --zovi-light: #f8fafc;
    --zovi-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --zovi-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --zovi-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --zovi-border-radius: 12px;
    --zovi-transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* Text Gradient */
.text-gradient {
    background: var(--zovi-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-purple {
    color: #8b5cf6 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.min-vh-60 {
    min-height: 60vh;
}

.hero-illustration {
    position: relative;
    padding: 40px;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 2rem;
}

.floating-icons i {
    position: absolute;
    animation: float 3s ease-in-out infinite;
}

.floating-icons i:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-icons i:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.5s; }
.floating-icons i:nth-child(3) { bottom: 25%; left: 15%; animation-delay: 1s; }
.floating-icons i:nth-child(4) { bottom: 15%; right: 10%; animation-delay: 1.5s; }

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

/* Cards */
.card {
    border-radius: var(--zovi-border-radius);
    transition: var(--zovi-transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--zovi-shadow-lg);
}

/* Stats */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Step Numbers */
.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--zovi-gradient);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Feature Icons */
.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.sidebar .nav-link {
    color: var(--zovi-secondary);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    margin: 2px 8px;
    transition: var(--zovi-transition);
}

.sidebar .nav-link:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--zovi-primary);
}

.sidebar .nav-link.active {
    background: var(--zovi-gradient);
    color: white !important;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

/* Avatar */
.avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--zovi-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard Stats Cards */
.stat-card-mini {
    border: none;
    border-radius: var(--zovi-border-radius);
    overflow: hidden;
}

.stat-card-mini .card-body {
    position: relative;
    overflow: hidden;
}

.stat-card-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card-mini.bg-primary-subtle::before { background: var(--zovi-primary); }
.stat-card-mini.bg-success-subtle::before { background: var(--zovi-success); }
.stat-card-mini.bg-warning-subtle::before { background: var(--zovi-warning); }
.stat-card-mini.bg-info-subtle::before { background: var(--zovi-info); }

/* Upload Area */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--zovi-border-radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--zovi-transition);
    background-color: rgba(99, 102, 241, 0.02);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--zovi-primary);
    background-color: rgba(99, 102, 241, 0.05);
    transform: scale(1.01);
}

.upload-zone .upload-icon {
    font-size: 4rem;
    color: var(--zovi-primary);
    margin-bottom: 1rem;
}

/* File Cards */
.file-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--zovi-border-radius);
    transition: var(--zovi-transition);
}

.file-card:hover {
    border-color: var(--zovi-primary);
    box-shadow: var(--zovi-shadow);
}

.file-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.file-icon.pdf { background: #fef2f2; color: #dc2626; }
.file-icon.doc { background: #eff6ff; color: #2563eb; }
.file-icon.xls { background: #f0fdf4; color: #16a34a; }
.file-icon.zip { background: #fffbeb; color: #d97706; }
.file-icon.img { background: #f5f3ff; color: #7c3aed; }
.file-icon.vid { background: #fdf2f8; color: #db2777; }
.file-icon.default { background: #f1f5f9; color: #64748b; }

/* Share Link */
.share-link-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-link-box input {
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
    font-family: monospace;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background: var(--zovi-gradient);
    border: none;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* Password Strength Meter */
.password-strength {
    height: 4px;
    border-radius: 2px;
    transition: var(--zovi-transition);
}

.password-strength.weak { background: var(--zovi-danger); width: 33%; }
.password-strength.medium { background: var(--zovi-warning); width: 66%; }
.password-strength.strong { background: var(--zovi-success); width: 100%; }

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.05);
}

/* Badge Styles */
.badge-price {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e2e8f0;
}

.progress-bar {
    background: var(--zovi-gradient);
    border-radius: 4px;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: var(--zovi-secondary);
}

.pagination .page-item.active .page-link {
    background: var(--zovi-gradient);
    color: white;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--zovi-border-radius);
}

/* Download Page */
.download-card {
    max-width: 600px;
    margin: 0 auto;
}

.file-preview-large {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

/* Footer */
.footer a:hover {
    color: var(--zovi-primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        height: auto;
        position: relative;
        top: 0;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .upload-zone {
        padding: 2rem 1rem;
    }
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] {
    --zovi-light: #1e293b;
}

[data-bs-theme="dark"] .upload-zone {
    border-color: #475569;
    background-color: rgba(99, 102, 241, 0.05);
}

[data-bs-theme="dark"] .share-link-box {
    background: #334155;
    border-color: #475569;
}

[data-bs-theme="dark"] .file-card {
    border-color: #334155;
}

[data-bs-theme="dark"] .stat-card-mini {
    border: 1px solid #334155;
}

/* Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Copy button animation */
.copy-success {
    animation: copyPulse 0.3s ease;
}

@keyframes copyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: #1e293b;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #475569;
}
