/* RGXMarket Modern Glassmorphism Design */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.1);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.05);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Modern Navigation */
.navbar {
    background: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.75rem;
    color: var(--text-primary) !important;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 12px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
    background: var(--bg-glass);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: var(--bg-glass);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Modern Buttons */
.btn {
    font-weight: 600;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: none;
    letter-spacing: 0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 16px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

/* Modern Glassmorphism Cards */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary) !important;
    font-weight: 600;
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
}

.card-body {
    padding: 1.5rem;
    color: var(--text-primary);
}

.card-title {
    color: var(--text-primary) !important;
}

.card-text {
    color: var(--text-secondary) !important;
}

.product-card {
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.03);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.product-image {
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    transition: all 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

.product-badge {
    z-index: 10;
    pointer-events: none;
}

.product-badge .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--success-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Modern Hero Section */
.hero-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 32px;
    color: var(--text-primary);
    padding: 100px 0;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.category-card h4 {
    color: var(--text-primary) !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--text-secondary) !important;
    margin-bottom: 1.5rem;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.category-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
}

.admin-sidebar {
    background: var(--dark-color);
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    margin: 5px 10px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.admin-content {
    padding: 30px;
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.quantity-input {
    width: 80px;
    text-align: center;
}

.checkout-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.payment-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.spinner-border {
    color: var(--primary-color);
}

.alert {
    border-radius: 10px;
    border: none;
}

.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0;
}

.btn-close {
    filter: invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
    
    .admin-content {
        padding: 15px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

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

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* License Key Blur Effect */
.license-key-blurred {
    filter: blur(8px);
    user-select: none;
    transition: filter 0.3s ease;
}

.license-key-visible {
    filter: none;
}

.license-key-container {
    position: relative;
    display: inline-block;
}

.license-key-actions {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.license-key-toggle,
.license-key-copy {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.license-key-toggle:hover,
.license-key-copy:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Modern Form Controls */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Modern Tables */
.table {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary) !important;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-primary);
}

.table th {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-primary);
    color: var(--text-primary) !important;
    font-weight: 600;
    padding: 1rem;
}

.table td {
    border-color: var(--border-primary);
    padding: 1rem;
    vertical-align: middle;
    color: var(--text-primary) !important;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Modern Alerts */
.alert {
    border: none;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border-color: rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info-color);
    border-color: rgba(6, 182, 212, 0.2);
}

/* Modern Footer */
footer {
    background: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-primary);
    color: var(--text-muted);
    margin-top: 80px;
}

/* Modern Avatar Circle */
.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.avatar-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.avatar-circle:hover::before {
    transform: translateX(100%);
}

.avatar-circle:hover {
    transform: scale(1.1);
    box-shadow: 
        0 12px 40px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Modern Stats Cards */
.stats-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-card:hover::before {
    opacity: 1;
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    color: var(--text-primary) !important;
}

.stats-card p {
    position: relative;
    z-index: 1;
    color: var(--text-secondary) !important;
}

/* Modern Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1rem 1.5rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.breadcrumb-item.active {
    color: var(--text-muted);
    font-weight: 600;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Loading Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-fade-scale {
    animation: fadeInScale 0.5s ease-out;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Glow Effects */
.glow-primary {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.glow-primary:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

/* Text Effects */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

h6 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
}

/* Paragraphs and text */
p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Small text */
small {
    color: var(--text-muted) !important;
}

/* Code elements */
code {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Admin Panel Specific Styles */
.admin-content {
    color: var(--text-primary);
}

.admin-content h1 {
    color: var(--text-primary) !important;
}

.admin-content h2 {
    color: var(--text-primary) !important;
}

.admin-content h3 {
    color: var(--text-primary) !important;
}

.admin-content h4 {
    color: var(--text-primary) !important;
}

.admin-content h5 {
    color: var(--text-primary) !important;
}

.admin-content h6 {
    color: var(--text-primary) !important;
}

.admin-content p {
    color: var(--text-secondary) !important;
}

.admin-content .text-muted {
    color: var(--text-muted) !important;
}

/* Admin Sidebar */
.admin-sidebar {
    background: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.admin-sidebar .nav-link {
    color: var(--text-secondary) !important;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover {
    color: var(--text-primary) !important;
    background: var(--bg-glass);
}

.admin-sidebar .nav-link.active {
    color: var(--primary-color) !important;
    background: var(--bg-glass);
}

/* Modal Styles */
.modal-content {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.modal-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-primary);
}

.modal-footer {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--border-primary);
}

/* Modern Dropdown Styles */
.dropdown-menu {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary) !important;
    border-radius: 12px !important;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.1);
    color: var(--text-primary) !important;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    color: var(--text-secondary) !important;
    padding: 0.75rem 1rem !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none !important;
    background: transparent !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--bg-glass) !important;
    color: var(--text-primary) !important;
    transform: translateX(4px);
}

.dropdown-item:active {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--primary-color) !important;
}

.dropdown-divider {
    border-color: var(--border-primary) !important;
    margin: 0.5rem 0;
}

/* Navbar Dropdown Specific */
.navbar .dropdown-menu {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary) !important;
    border-radius: 12px !important;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.1);
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    color: var(--text-secondary) !important;
    padding: 0.75rem 1rem !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: var(--bg-glass) !important;
    color: var(--text-primary) !important;
    transform: translateX(4px);
}

/* Admin Dropdown Specific */
.admin-content .dropdown-menu {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary) !important;
    border-radius: 12px !important;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

.admin-content .dropdown-item {
    color: var(--text-secondary) !important;
    padding: 0.75rem 1rem !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-content .dropdown-item:hover,
.admin-content .dropdown-item:focus {
    background: var(--bg-glass) !important;
    color: var(--text-primary) !important;
    transform: translateX(4px);
}

/* Button Dropdown Specific */
.btn-group .dropdown-menu {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary) !important;
    border-radius: 12px !important;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

.btn-group .dropdown-item {
    color: var(--text-secondary) !important;
    padding: 0.75rem 1rem !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-group .dropdown-item:hover,
.btn-group .dropdown-item:focus {
    background: var(--bg-glass) !important;
    color: var(--text-primary) !important;
    transform: translateX(4px);
}

/* Dropdown Toggle Styles */
.dropdown-toggle::after {
    border-top: 0.3em solid var(--text-secondary);
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    margin-left: 0.5em;
    vertical-align: 0.255em;
    content: "";
    border-top-color: var(--text-secondary) !important;
}

.dropdown-toggle:hover::after {
    border-top-color: var(--text-primary) !important;
}

.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25) !important;
}

/* Show/Hide Animation */
.dropdown-menu.show {
    animation: dropdownFadeIn 0.3s ease-out;
}

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

/* Badge Styles */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

/* Category Dropdown Specific */
.navbar .dropdown-menu .dropdown-item {
    position: relative;
    overflow: hidden;
}

.navbar .dropdown-menu .dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.navbar .dropdown-menu .dropdown-item:hover::before {
    left: 100%;
}

/* Form Select Dropdown */
.form-select {
    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='%23a1a1aa' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e") !important;
}

.form-select:focus {
    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='%236366f1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e") !important;
}

/* Warenkorb Modal Styles */
.cart-modal {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    color: var(--text-primary);
}

.cart-modal .modal-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.cart-modal .modal-body {
    color: var(--text-primary);
    max-height: 60vh;
    overflow-y: auto;
}

.cart-modal .modal-footer {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1rem;
}

.cart-item-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--text-muted);
}

.cart-item-details {
    flex: 1;
    margin-right: 1rem;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.cart-quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-primary);
    background: var(--bg-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.cart-quantity-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.cart-quantity-input {
    width: 50px;
    text-align: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 0.25rem;
}

.cart-item-total {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 80px;
    text-align: right;
}

.cart-remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--danger-color);
    background: transparent;
    color: var(--danger-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.cart-remove-btn:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty h5 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.cart-empty p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Cart Modal Animations */
.cart-modal .modal-dialog {
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.cart-modal.show .modal-dialog {
    transform: translateY(0);
}

.cart-item {
    animation: slideInFromRight 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
    
    .card {
        border-radius: 16px;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .dropdown-menu {
        min-width: 180px;
    }
    
    .dropdown-item {
        padding: 0.625rem 0.875rem !important;
    }
    
    .cart-modal .modal-dialog {
        margin: 0.5rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cart-item-image,
    .cart-item-placeholder {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-details {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-controls {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Account Details Table Styles */
.account-details-table {
    background: var(--bg-glass) !important;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.account-details-table .table-responsive {
    background: var(--bg-glass) !important;
}

.account-details-table .table {
    margin-bottom: 0;
    color: var(--text-primary) !important;
    background: transparent !important;
}

.account-details-table .table-dark th {
    background: var(--primary-color) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.account-details-table .table td {
    background: transparent !important;
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    padding: 12px 16px !important;
}

.account-details-table .table-striped > tbody > tr:nth-of-type(odd) > td {
    background: rgba(255, 255, 255, 0.02) !important;
}

.account-details-table .table-hover > tbody > tr:hover > td {
    background: var(--bg-glass-hover) !important;
}

.account-details-table .badge {
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
}

.account-details-table .fw-semibold {
    color: var(--text-primary) !important;
}

.account-details-table .text-success {
    color: var(--success-color) !important;
}

/* Force dark theme for all table elements */
.account-details-table table,
.account-details-table thead,
.account-details-table tbody,
.account-details-table tr,
.account-details-table th,
.account-details-table td {
    background: transparent !important;
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.account-details-table .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.02) !important;
}

.account-details-table .table-hover tbody tr:hover {
    background: var(--bg-glass-hover) !important;
}

/* Override Bootstrap table styles completely */
.account-details-table .table > :not(caption) > * > * {
    background: transparent !important;
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.account-details-table .table-striped > tbody > tr:nth-of-type(odd) > * {
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-primary) !important;
}

.account-details-table .table-hover > tbody > tr:hover > * {
    background: var(--bg-glass-hover) !important;
    color: var(--text-primary) !important;
}

/* Specific overrides for table cells */
.account-details-table tbody tr td {
    background: transparent !important;
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.account-details-table tbody tr:nth-of-type(odd) td {
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-primary) !important;
}

.account-details-table tbody tr:hover td {
    background: var(--bg-glass-hover) !important;
    color: var(--text-primary) !important;
}

/* Nuclear option - override everything */
.account-details-table * {
    background: transparent !important;
    color: var(--text-primary) !important;
}

.account-details-table .table-dark th {
    background: var(--primary-color) !important;
    color: white !important;
}

.account-details-table .badge {
    background: var(--primary-color) !important;
    color: white !important;
}

.account-details-table .badge.bg-success {
    background: var(--success-color) !important;
    color: white !important;
}

.account-details-table .text-success {
    color: var(--success-color) !important;
}
