/* SmartB Client Panel - Dark Liquid Glass Theme */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    background: radial-gradient(ellipse at center top, #0f172a 0%, #020617 40%, #000000 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --primary-blue: #3b82f6;
    --primary-blue-dark: #1e40af;
    --secondary-purple: #8b5cf6;
    --secondary-cyan: #06b6d4;
    --glass-bg-primary: rgba(15, 23, 42, 0.6);
    --glass-bg-secondary: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(148, 163, 184, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Liquid Glass Effects */
.glass-primary {
    background: var(--glass-bg-primary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-secondary {
    background: var(--glass-bg-secondary);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.glass-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.glass-input {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #e2e8f0;
}

.glass-input:focus {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(59, 130, 246, 0.6);
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 4px 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.glass-input::placeholder {
    color: #94a3b8;
}

/* Liquid Orbs Background */
.liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.4;
    animation: liquidFloat 15s ease-in-out infinite;
}

.orb-1 {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.1) 60%, transparent 100%);
    animation-delay: 0s;
}

.orb-2 {
    top: 70%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.1) 60%, transparent 100%);
    animation-delay: 5s;
}

.orb-3 {
    bottom: 15%;
    left: 15%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(6, 182, 212, 0.1) 60%, transparent 100%);
    animation-delay: 10s;
}

@keyframes liquidFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.4;
    }
    33% {
        transform: translate(-30px, -40px) scale(1.1) rotate(120deg);
        opacity: 0.6;
    }
    66% {
        transform: translate(20px, -20px) scale(0.9) rotate(240deg);
        opacity: 0.8;
    }
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-purple) 0%, #7c3aed 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

/* Progress Bar */
.progress-bar {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-cyan));
    height: 8px;
    border-radius: 10px;
    transition: width 0.8s ease-out;
}

/* Status Badges */
.status-active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-completed {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
}

.status-under_review {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
}

.status-approved {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-rejected {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.status-on_hold {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

/* Sidebar Styles */
.sidebar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(25px);
    border-right: 1px solid rgba(148, 163, 184, 0.1);
}

.sidebar-item {
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 1px 0;
}

.sidebar-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.sidebar-item.active {
    background: var(--primary-blue);
}

/* Submenu Styles */
.sidebar-subitem {
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 1px 0;
}

.sidebar-subitem:hover {
    background: rgba(59, 130, 246, 0.08);
}

.submenu {
    overflow: hidden;
    transition: all 0.3s ease;
}

.submenu.show {
    display: block;
}

/* Logo Glow */
.logo-glow {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}

/* Chart Container */
.chart-container {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
}

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

::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-up {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus Ring */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Pulse Animation */
.pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Tab Styles */
.tab-active {
    background: rgba(59, 130, 246, 0.2);
    border-bottom: 2px solid #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

/* Feature Cards */
.feature-card {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
}

/* Utility Classes */
.compact-spacing {
    padding: 1rem;
}

.compact-form {
    padding: 1.5rem;
}

/* Theme Transition */
.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
