/* Global Theme */
:root {
    --primary: #78a8f5;
    --primary-dark: #3a7e99;
    --mica-background: rgba(27, 17, 39, 0.85);
    --mica-border: rgba(255, 255, 255, 0.08);
    --mica-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --card-bg: rgba(31, 41, 55, 0.85);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
}

/* Base dark background */
body {
    background: #1a032cd5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Remove the previous gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b0312;
    z-index: -2;
}

/* Floating Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* New moving light source effect */
.blob {
    position: absolute;
    width: 1500px;
    height: 1500px;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
    background: radial-gradient(circle at center, 
        rgba(56, 248, 200, 0.7) 0%,
        rgba(106, 28, 231, 0.4) 30%,
        transparent 70%
    );
    mix-blend-mode: screen;
}

.blob:nth-child(1) {
    animation: moveLight1 25s ease-in-out infinite;
}

.blob:nth-child(2) {
    animation: moveLight2 30s ease-in-out infinite;
    background: radial-gradient(circle at center, 
        rgba(247, 201, 75, 0.411) 0%,
        rgba(129, 118, 248, 0.4) 30%,
        transparent 70%
    );
}

.blob:nth-child(3) {
    animation: moveLight3 20s ease-in-out infinite;
    background: radial-gradient(circle at center, 
        rgba(59, 246, 230, 0.7) 0%,
        rgba(37, 235, 225, 0.4) 30%,
        transparent 70%
    );
}

/* Mica Glass Effect */
.auth-card,
.sidebar,
.dashboard-container,
.admin-layout,
.files-grid > div,
.user-card,
.preview-container,
.welcome-card,
.upload-card,
.stats-card,
.modal,
.toast {
    background: rgba(17, 24, 39, 0.4) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border-radius: 16px !important;
    color: var(--text) !important;
}

/* Card hover effect with light interaction */
.auth-card:hover,
.user-card:hover,
.file-card:hover {
    background: rgba(17, 24, 39, 0.5) !important;
    backdrop-filter: blur(15px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(200%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal Overlay */
.modal-overlay {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(8px);
}

/* Animations */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -100px) scale(1.2); }
    50% { transform: translate(0, 100px) scale(0.9); }
    75% { transform: translate(-100px, -50px) scale(1.1); }
}

/* Light movement animations */
@keyframes moveLight1 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(25%, 25%) scale(1.2); }
    50% { transform: translate(50%, -25%) scale(0.8); }
    75% { transform: translate(-25%, 50%) scale(1.1); }
}

@keyframes moveLight2 {
    0%, 100% { transform: translate(0%, 0%) scale(1); }
    25% { transform: translate(-30%, 40%) scale(0.9); }
    50% { transform: translate(40%, 30%) scale(1.1); }
    75% { transform: translate(20%, -40%) scale(1); }
}

@keyframes moveLight3 {
    0%, 100% { transform: translate(-20%, -20%) scale(1.1); }
    25% { transform: translate(40%, -10%) scale(0.8); }
    50% { transform: translate(-30%, 30%) scale(1.2); }
    75% { transform: translate(10%, -40%) scale(0.9); }
}

/* Buttons */
.btn {
    background: rgba(31, 41, 55, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

.btn:hover {
    background: rgba(31, 41, 55, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3) !important;
}

.btn-primary {
    background: rgba(59, 130, 246, 0.9) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

.btn-primary:hover {
    background: rgba(59, 130, 246, 0.95) !important;
}

/* Input Fields with Mica Effect */
input, 
textarea, 
select {
    background: rgba(31, 41, 55, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text) !important;
}

input:focus, textarea:focus, select:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) !important;
}

/* Sidebar Navigation Buttons */
.nav-links a,
.admin-nav .nav-item {
    background: rgba(17, 24, 39, 0.4) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 4px 0;
}

.nav-links a i,
.admin-nav .nav-item i {
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.admin-nav .nav-item:hover,
.nav-links .active a,
.admin-nav .nav-item.active {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.nav-links a:hover i,
.admin-nav .nav-item:hover i,
.nav-links .active a i,
.admin-nav .nav-item.active i {
    color: var(--primary);
    transform: scale(1.1);
}

/* Action Buttons (non-sidebar) */
.btn {
    position: relative;
    background: rgba(17, 24, 39, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    color: var(--text) !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transform: translateX(-100%);
    transition: 0.5s;
}

.btn:hover:before {
    transform: translateX(100%);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.btn i {
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.8),
        rgba(37, 99, 235, 0.8)
    ) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

.btn-secondary {
    background: rgba(31, 41, 55, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.btn-danger {
    background: linear-gradient(
        135deg,
        rgba(239, 68, 68, 0.8),
        rgba(220, 38, 38, 0.8)
    ) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.btn-success {
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.8),
        rgba(5, 150, 105, 0.8)
    ) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

/* Small Button Variant */
.btn-sm {
    padding: 6px 12px !important;
    font-size: 0.875rem !important;
}

/* Icon-only Button Variant */
.btn-icon {
    padding: 8px !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 8px;
}
