/* Premium Modern Design System - Austro ERP */
:root {
    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.85);
    --primary: #4f46e5; /* Deep Indigo */
    --primary-hover: #4338ca;
    --accent: #06b6d4; /* Cyan */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.05);
    --font-family: 'Outfit', 'Inter', sans-serif;
    --sidebar-bg: #0f172a;
    --sidebar-text: #e2e8f0;
    --sidebar-text-muted: #94a3b8;
    --sidebar-active-bg: rgba(79, 70, 229, 0.15);
    --sidebar-active-border: #4f46e5;
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-family);
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Components */
.glass-effect {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.premium-card {
    border-radius: 1.25rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: rgba(79, 70, 229, 0.2);
}

/* Premium Inputs */
.premium-input {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--text-main) !important;
    border-radius: 0.75rem !important;
    padding: 0.875rem 1.25rem !important;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.premium-input:focus {
    background: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none;
}

/* Buttons */
.premium-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.875rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.premium-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

/* Login Hero */
.login-hero-bg {
    min-height: 100vh;
    background: url('/images/premium-login-bg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
    pointer-events: none;
}

.login-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 1.5rem;
    padding: 3.5rem;
    width: 100%;
    max-width: 450px;
    z-index: 10;
    position: relative;
}

.login-glass-card label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.login-glass-card input.premium-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.login-glass-card input.premium-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-glass-card input.premium-input:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
}

.login-glass-card .form-check-label {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Dashboard Sidebar */
.sidebar-premium {
    background: var(--sidebar-bg) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.sidebar-premium::-webkit-scrollbar {
    width: 4px;
}

.sidebar-premium::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Force colors for sidebar items overriding Bootstrap */
.sidebar-premium .text-muted, 
.sidebar-premium .text-dark,
.sidebar-premium .app-brand-text {
    color: var(--sidebar-text-muted) !important;
}

.sidebar-premium .app-brand-text.text-dark {
    color: #ffffff !important;
}

.menu-item-premium {
    margin: 0.25rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    color: var(--sidebar-text-muted) !important;
}

.menu-item-premium.active {
    background: var(--sidebar-active-bg) !important;
    color: #ffffff !important;
    font-weight: 500;
    position: relative;
}

.menu-item-premium.active::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 4px;
    background: var(--sidebar-active-border);
    border-radius: 0 4px 4px 0;
}

.menu-item-premium:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
}

.sidebar-brand-text {
    color: #ffffff !important;
    letter-spacing: 0.5px;
}

/* Global Card Styling */
.layout-page .card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.layout-page .card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.layout-page .card-header {
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

/* Navbar */
.layout-navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}