:root {
    --primary-color: #5D5CDE;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --bg-light: #FFFFFF;
    --bg-dark: #181818;
    --text-light: #212529;
    --text-dark: #f8f9fa;
}

/* Dark mode styles */
[data-bs-theme="dark"] {
    color-scheme: dark;
    --bs-body-color: var(--text-dark);
    --bs-body-bg: var(--bg-dark);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: background-color 0.3s, color 0.3s;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #4a49b8;
    border-color: #4a49b8;
}

.card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(93, 92, 222, 0.25);
}

/* Responsive font sizes */
h1 {
    font-size: calc(1.5rem + 1.5vw);
}

h2 {
    font-size: calc(1.3rem + 0.9vw);
}

h3 {
    font-size: calc(1.2rem + 0.6vw);
}

/* Form styles */
.form-control, .form-select {
    font-size: 16px; /* Prevent zoom on mobile */
    padding: 0.75rem;
    border-radius: 0.375rem;
}

label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Level badges */
.badge-free {
    background-color: #6c757d;
}

.badge-premium {
    background-color: #17a2b8;
}

.badge-vip {
    background-color: #ffc107;
    color: #212529;
}

/* Loading spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 3rem;
    height: 3rem;
}

/* Ad container */
.ad-container {
    margin: 1.5rem 0;
    text-align: center;
    overflow: hidden;
    min-height: 90px;
}

/* Tooltip */
.custom-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1.5rem;
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}