/* ScriptLab Global Styles */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* Navbar */
.navbar-modern {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.navbar-modern .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-modern .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-modern .nav-link:hover {
    color: #fff !important;
}

/* Buttons */
.btn-glow {
    background: var(--gradient-2);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    color: #fff;
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Cards */
.card-modern {
    background: var(--dark-light);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

.card-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(20px);
}

/* Product Cards */
.product-card-modern {
    background: var(--dark-light);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}

.product-card-modern:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 80px rgba(99, 102, 241, 0.15);
}

.product-card-modern .product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-card-modern .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-modern:hover .product-image img {
    transform: scale(1.1);
}

.product-card-modern .badge-sale {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--danger);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-card-modern .badge-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
}

.product-card-modern .product-content {
    padding: 1.5rem;
}

.product-card-modern .product-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-modern .product-price {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card-modern .price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.875rem;
    font-weight: normal;
}

/* Section Headers */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Forms */
.form-control-modern {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

.form-control-modern::placeholder {
    color: var(--text-muted);
}

/* Filter Sidebar */
.filter-sidebar {
    background: var(--dark-light);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.filter-sidebar h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.filter-sidebar ul {
    list-style: none;
    padding: 0;
}

.filter-sidebar li {
    margin-bottom: 0.75rem;
}

.filter-sidebar a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filter-sidebar a:hover,
.filter-sidebar a.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.2);
}

.filter-sidebar a.active {
    color: var(--primary);
}

/* Footer */
.footer-modern {
    background: var(--dark);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.payment-badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.social-link:hover {
    background: var(--gradient-2);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Alerts */
.alert-modern {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
}

.alert-modern.alert-success {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.alert-modern.alert-danger {
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.alert-modern.alert-info {
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--accent);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
}

/* Breadcrumb */
.breadcrumb-modern {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-modern .breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-modern .breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-modern .breadcrumb-item.active {
    color: var(--text);
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: var(--dark);
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

.auth-card {
    background: var(--dark-light);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.auth-card .auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .auth-header i {
    font-size: 3rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.auth-card .auth-header h3 {
    color: #fff;
    font-weight: 700;
}

.auth-card .auth-header p {
    color: var(--text-muted);
}

/* Table Modern */
.table-modern {
    color: var(--text);
}

.table-modern th {
    border-color: var(--glass-border);
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
}

.table-modern td {
    border-color: var(--glass-border);
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Responsive */
@media (max-width: 992px) {
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-card-modern .product-image {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .filter-sidebar {
        margin-bottom: 1.5rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--dark-light) 25%, var(--dark) 50%, var(--dark-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Text Color Fixes */
body, p, span, div, h1, h2, h3, h4, h5, h6, label, li, a {
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff !important;
}

p, span:not(.badge), label, li {
    color: var(--text);
}

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

.text-white {
    color: #fff !important;
}

/* Auth Page Center Fix */
.auth-page .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

/* Form Control Text Fix */
.form-control, 
.form-control::placeholder,
input, textarea, select {
    color: var(--text) !important;
}

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

.form-control-modern {
    background: var(--card-bg) !important;
    border-color: var(--glass-border) !important;
    color: var(--text) !important;
}

.form-control-modern:focus {
    color: #fff !important;
}

/* Input Group Icon Fix */
.input-group-text {
    background: transparent !important;
    border-color: var(--glass-border) !important;
    color: var(--text-muted) !important;
}

/* Card Content Fix */
.card-modern, .product-card-modern, .cart-item, .summary-card, .product-info-card {
    color: var(--text);
}

.card-modern h1, .card-modern h2, .card-modern h3, .card-modern h4, .card-modern h5, .card-modern h6,
.product-card-modern h1, .product-card-modern h2, .product-card-modern h3, .product-card-modern h4, .product-card-modern h5, .product-card-modern h6 {
    color: #fff !important;
}

/* Description and Content Text */
.product-info-card p, .description, .tab-content {
    color: var(--text);
}

/* Breadcrumb Fix */
.breadcrumb-item, .breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text);
}

/* Alert Modern Fix */
.alert-modern {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-modern.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-modern.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-modern.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-modern.alert-info {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Footer Links */
.footer-links a {
    color: var(--text-muted) !important;
}

.footer-links a:hover {
    color: #fff !important;
}

/* Card BG Variable */
:root {
    --card-bg: #1e293b;
}
