/* Gaming E-commerce Website Styles */

:root {
    --primary-color: #e53935;
    --secondary-color: #b71c1c;
    --accent-color: #ff5252;
    --dark-bg: #0a0a0a;
    --bg-dark: #0a0a0a;
    --card-bg: #141414;
    --bg-card: #141414;
    --bg-elevated: #1a1a1a;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    color: var(--text-primary);
}

/* Navbar Customization */
.navbar {
    background: var(--bg-card) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 57, 53, 0.3);
}

.navbar-brand {
    font-size: 1.4rem;
    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color);
}

/* Card Styles */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(229, 57, 53, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(229, 57, 53, 0.3);
}

.card-header {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-bottom: none;
    border-radius: 16px 16px 0 0 !important;
    color: white;
    font-weight: 600;
}

/* Product Cards */
.product-card {
    overflow: hidden;
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    background: var(--bg-card);
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
}

.product-price-original {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Video Preview */
.video-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.video-preview video,
.video-preview iframe {
    width: 100%;
    border-radius: 12px;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-overlay i {
    font-size: 24px;
    color: white;
    margin-left: 4px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.btn-success {
    background: var(--success-color);
    border: none;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Forms */
.form-control,
.form-select {
    background: var(--bg-elevated);
    border: 1px solid rgba(229, 57, 53, 0.3);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-elevated);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Registration Type Selector */
.user-type-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.user-type-card {
    flex: 1;
    padding: 24px;
    border: 2px solid rgba(229, 57, 53, 0.3);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-card);
}

.user-type-card:hover,
.user-type-card.active {
    border-color: var(--primary-color);
    background: rgba(229, 57, 53, 0.1);
}

.user-type-card.active {
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.3);
}

.user-type-card i {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.user-type-card h5 {
    margin-bottom: 8px;
}

.user-type-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Dashboard Widgets */
.dashboard-widget {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(229, 57, 53, 0.2);
}

.dashboard-widget .widget-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.dashboard-widget .widget-icon.primary {
    background: rgba(229, 57, 53, 0.2);
    color: var(--primary-color);
}

.dashboard-widget .widget-icon.success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success-color);
}

.dashboard-widget .widget-icon.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.dashboard-widget .widget-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
}

.dashboard-widget .widget-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Tables */
.table {
    color: var(--text-primary);
}

.table thead th {
    background: rgba(229, 57, 53, 0.2);
    border-color: rgba(229, 57, 53, 0.3);
    color: var(--text-primary);
    font-weight: 600;
}

.table tbody td {
    border-color: rgba(229, 57, 53, 0.1);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: rgba(229, 57, 53, 0.1);
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.status-verified {
    background: rgba(255, 82, 82, 0.2);
    color: var(--accent-color);
}

.status-confirmed {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success-color);
}

.status-delivered {
    background: rgba(229, 57, 53, 0.2);
    color: var(--primary-color);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

/* Wallet */
.wallet-balance {
    font-size: 3rem;
    font-weight: bold;
    color: var(--success-color);
}

.payment-info-card {
    background: rgba(229, 57, 53, 0.1);
    border: 1px dashed var(--primary-color);
    border-radius: 12px;
    padding: 20px;
}

/* UDID Page */
.udid-steps {
    counter-reset: step;
}

.udid-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.udid-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.udid-display {
    background: var(--bg-card);
    border: 2px solid var(--success-color);
    border-radius: 12px;
    padding: 20px;
    font-family: monospace;
    font-size: 18px;
    word-break: break-all;
    text-align: center;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.alert-info {
    background: rgba(34, 211, 238, 0.2);
    color: var(--accent-color);
}

/* Footer */
footer {
    background: var(--bg-card) !important;
    border-top: 1px solid rgba(229, 57, 53, 0.2);
}

/* Hero Section */
.hero-section {
    background: rgba(229, 57, 53, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Countdown Timer */
.countdown-timer {
    font-size: 3rem;
    font-weight: bold;
    color: var(--warning-color);
    text-align: center;
}

/* Admin Sidebar */
.admin-sidebar {
    background: var(--bg-card);
    min-height: calc(100vh - 56px);
    border-right: 1px solid rgba(229, 57, 53, 0.2);
}

.admin-sidebar .nav-link {
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 4px 12px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(229, 57, 53, 0.2);
    color: var(--primary-color);
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .user-type-selector {
        flex-direction: column;
    }
    
    .wallet-balance {
        font-size: 2rem;
    }
    
    .dashboard-widget {
        margin-bottom: 16px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
