/* CherryUnlocked Custom Styles */

:root {
    --cherry-primary: #FF1493;
    --cherry-secondary: #000000;
    --cherry-accent: #FFB6C1;
    --cherry-dark: #1a1a1a;
    --cherry-light: #ffffff;
    --cherry-gradient: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
}

/* Base Theme */
.cherry-theme {
    background-color: var(--cherry-dark);
    color: var(--cherry-light);
}

/* Brand Colors */
.text-cherry {
    color: var(--cherry-primary) !important;
}

.bg-cherry {
    background-color: var(--cherry-primary) !important;
}

.border-cherry {
    border-color: var(--cherry-primary) !important;
}

/* Navigation */
.cherry-nav {
    background: var(--cherry-gradient) !important;
    box-shadow: 0 2px 10px rgba(255, 20, 147, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Cards */
.cherry-card {
    background-color: #2d2d2d;
    border: 1px solid rgba(255, 20, 147, 0.2);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.cherry-card:hover {
    border-color: rgba(255, 20, 147, 0.4);
    box-shadow: 0 8px 30px rgba(255, 20, 147, 0.2);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(90deg, rgba(255, 20, 147, 0.1) 0%, rgba(255, 105, 180, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 20, 147, 0.2);
}

/* Buttons */
.btn-cherry {
    background: var(--cherry-gradient);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-cherry:hover {
    background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
}

.btn-outline-cherry {
    border: 2px solid var(--cherry-primary);
    color: var(--cherry-primary);
    background: transparent;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-cherry:hover {
    background: var(--cherry-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

/* Icons */
.cherry-icon {
    font-size: 4rem;
    color: var(--cherry-primary);
    text-shadow: 0 4px 8px rgba(255, 20, 147, 0.3);
}

/* Forms */
.form-control {
    background-color: #3d3d3d;
    border: 1px solid rgba(255, 20, 147, 0.3);
    color: var(--cherry-light);
    border-radius: 10px;
}

.form-control:focus {
    background-color: #3d3d3d;
    border-color: var(--cherry-primary);
    color: var(--cherry-light);
    box-shadow: 0 0 0 0.2rem rgba(255, 20, 147, 0.25);
}

/* Tables */
.table-dark {
    --bs-table-bg: #2d2d2d;
    --bs-table-border-color: rgba(255, 20, 147, 0.2);
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 20, 147, 0.1);
}

/* Login Page */
.feature-item {
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2rem;
    display: block;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 20, 147, 0.3), transparent);
}

.divider-text {
    background: #2d2d2d;
    padding: 0 1rem;
    color: #999;
    font-size: 0.9rem;
}

/* Stats */
.stat-item {
    padding: 1rem;
    border-radius: 10px;
    background: white;
    border: 2px solid var(--cherry-primary);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    color: #000;
}

/* Stats cards - make text readable with black on white */
.stats-card {
    background: white !important;
    border: 2px solid var(--cherry-primary) !important;
    color: #000 !important;
}

.stats-card h3, .stats-card .h3 {
    color: #000 !important;
    font-weight: 700;
}

.stats-card p, .stats-card .text-muted {
    color: #666 !important;
}

.card-body h3, .card-body p {
    color: #000 !important;
}

.card-body .text-muted {
    color: #666 !important;
}

.stat-item:hover {
    background: rgba(255, 20, 147, 0.15);
    transform: scale(1.02);
}

/* Badges */
.badge.bg-cherry {
    background: var(--cherry-gradient) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cherry-icon {
        font-size: 3rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-cherry,
    .btn-outline-cherry {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
}

/* Radio Button Groups */
.btn-check:checked + .btn-outline-cherry {
    background: var(--cherry-primary);
    border-color: var(--cherry-primary);
    color: white;
}

/* Dropdown Menus */
.dropdown-menu {
    background-color: #2d2d2d;
    border: 1px solid rgba(255, 20, 147, 0.2);
    border-radius: 10px;
}

.dropdown-item {
    color: var(--cherry-light);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 20, 147, 0.1);
    color: var(--cherry-primary);
}

/* Telegram Login Widget Styling */
iframe[src*="telegram.org"] {
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.2) !important;
}

/* Loading States */
.spinner-border.text-cherry {
    color: var(--cherry-primary) !important;
}

/* Footer */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border-top: 1px solid rgba(255, 20, 147, 0.2);
}

/* Utilities */
.text-gradient {
    background: var(--cherry-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-cherry {
    box-shadow: 0 8px 30px rgba(255, 20, 147, 0.2) !important;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: var(--cherry-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF69B4;
}

/* Registration & Login Forms - Improved Contrast & Readability */
#register-content .cherry-card,
#login-content .cherry-card {
    background-color: #1f1f1f;
    border: 2px solid rgba(255, 20, 147, 0.5);
}

#register-content .card-body,
#login-content .card-body {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.85) 0%, rgba(30, 30, 30, 0.95) 100%);
    border-radius: 15px;
}

/* Form Text - Bright & More Readable */
#register-content h2,
#login-content h2 {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

#register-content h5,
#login-content h5 {
    color: #ffffff !important;
    font-weight: 600;
}

#register-content .text-muted,
#login-content .text-muted {
    color: #e8d5e8 !important;
    font-weight: 500;
}

/* Form Labels - Light Pink & Bold */
#register-content .form-label,
#login-content .form-label {
    color: #ff99cc !important;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.4px;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
}

/* Input Fields - Enhanced Contrast with Light Pink Borders */
#register-content .form-control,
#login-content .form-control {
    background-color: #252525;
    border: 2px solid #ff99cc;
    color: #ffffff;
    font-weight: 500;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

#register-content .form-control::placeholder,
#login-content .form-control::placeholder {
    color: #ff99cc;
    opacity: 0.85;
    font-weight: 500;
}

#register-content .form-control:focus,
#login-content .form-control:focus {
    background-color: #2a2a2a;
    border-color: #FF1493;
    color: #ffffff;
    box-shadow: 0 0 0 0.3rem rgba(255, 20, 147, 0.4);
}

/* Input Group - Bright Visibility */
#register-content .input-group-text,
#login-content .input-group-text {
    background-color: #252525;
    border: 2px solid #ff99cc;
    color: #ff99cc;
    font-weight: 700;
    border-right: none;
}

#register-content .input-group .form-control,
#login-content .input-group .form-control {
    border-left: none;
}

/* File Input - Better Styling */
#register-content input[type="file"]::file-selector-button,
#login-content input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    color: white;
    font-weight: 700;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

#register-content input[type="file"]::file-selector-button:hover,
#login-content input[type="file"]::file-selector-button:hover {
    opacity: 0.95;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
    transform: scale(1.02);
}

/* Helper Text - Bright Light Pink */
#register-content .form-text,
#login-content .form-text {
    color: #ff99cc !important;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Form Check (Checkbox) - Better Visibility */
#register-content .form-check-input,
#login-content .form-check-input {
    width: 1.3rem;
    height: 1.3rem;
    border: 2px solid #ff99cc;
    background-color: #252525;
    cursor: pointer;
}

#register-content .form-check-input:checked,
#login-content .form-check-input:checked {
    background-color: #FF1493;
    border-color: #FF1493;
}

#register-content .form-check-input:focus,
#login-content .form-check-input:focus {
    border-color: #FF1493;
    box-shadow: 0 0 0 0.25rem rgba(255, 20, 147, 0.3);
}

#register-content .form-check-label,
#login-content .form-check-label {
    color: #ffffff;
    font-weight: 600;
    margin-left: 0.6rem;
}

/* Form Control Wrapper */
#register-content .form-control-wrapper {
    position: relative;
}

/* Success & Error Messages - Enhanced */
#register-content .alert {
    border-radius: 10px;
    font-weight: 500;
    border: none;
}

#register-content .alert-success {
    background-color: rgba(40, 167, 69, 0.15);
    color: #68d391;
    border-left: 4px solid #28a745;
}

#register-content .alert-danger {
    background-color: rgba(220, 53, 69, 0.15);
    color: #fc8181;
    border-left: 4px solid #dc3545;
}

/* Tab Navigation - Better Contrast */
#register-content,
#login-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

.nav-tabs .nav-link {
    color: #b0b0b0;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #FF69B4;
    border-bottom-color: rgba(255, 20, 147, 0.3);
}

.nav-tabs .nav-link.active {
    color: #ffffff;
    background-color: transparent;
    border-bottom-color: #FF1493;
}
