/* MeraGehna Custom Theme - Fashion Jewelry */

:root {
    /* Override Tabler primary color with our pink/purple theme */
    --tblr-primary: #e91e63;
    --tblr-primary-rgb: 233, 30, 99;
    --tblr-primary-text-emphasis: #e91e63;
    --tblr-primary-bg-subtle: #fce4ec;
    --tblr-primary-border-subtle: #f8bbd0;
    
    /* Custom gradient colors */
    --mg-gradient-start: #f093fb;
    --mg-gradient-end: #f5576c;
}

/* Global background gradient - subtle version for content areas */
body {
    background: linear-gradient(135deg, #fdf6fd 0%, #fff5f6 100%);
    min-height: 100vh;
    /* Fix potential text spacing issues */
    word-spacing: 0;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero gradient - full strength */
.hero-gradient {
    background: linear-gradient(135deg, var(--mg-gradient-start) 0%, var(--mg-gradient-end) 100%);
}

/* Override button colors */
.btn-primary {
    background: linear-gradient(135deg, #e91e63 0%, #f5576c 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d81b60 0%, #e64a5f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-outline-secondary {
    border-color: #e91e63;
    color: #e91e63;
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #e91e63 0%, #f5576c 100%);
    border-color: #e91e63;
    color: white;
}

/* Navbar styling */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(233, 30, 99, 0.1);
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .navbar {
    background: rgba(32, 32, 32, 0.95);
    border-bottom: 1px solid rgba(233, 30, 99, 0.2);
}

[data-bs-theme="dark"] body {
    background: linear-gradient(135deg, #2a1f2e 0%, #3d2025 100%);
}

/* Card styling */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(233, 30, 99, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .card {
    background: rgba(32, 32, 32, 0.9);
    border: 1px solid rgba(233, 30, 99, 0.2);
}

/* Badge colors */
.badge.bg-primary {
    background: linear-gradient(135deg, #e91e63 0%, #f5576c 100%);
}

/* Link colors */
a {
    color: #e91e63;
}

a:hover {
    color: #d81b60;
}

/* Form controls focus state */
.form-control:focus,
.form-select:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.25);
}

/* Navigation active state */
.nav-link.active,
.nav-link:hover {
    color: #e91e63;
}

/* Page headers with gradient */
.page-header:not(.hero-gradient) {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    border-bottom: 1px solid rgba(233, 30, 99, 0.1);
}

/* Product cards hover effect */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(233, 30, 99, 0.15);
    transition: all 0.3s ease;
}

/* Avatar backgrounds for jewelry theme */
.avatar.bg-pink-lt {
    background: linear-gradient(135deg, #fce4ec 0%, #fff5f6 100%);
    color: #e91e63;
}

.avatar.bg-purple-lt {
    background: linear-gradient(135deg, #f3e5f5 0%, #fce4ec 100%);
    color: #9c27b0;
}

/* Shopping cart icon badge */
.badge.bg-red {
    background: #e91e63;
}

/* Footer styling */
footer.footer {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.05) 0%, rgba(245, 87, 108, 0.05) 100%);
    border-top: 1px solid rgba(233, 30, 99, 0.1);
    margin-top: 3rem;
}

/* Alert colors */
.alert-primary {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    border-color: rgba(233, 30, 99, 0.2);
    color: #c2185b;
}

/* Price text */
.text-primary {
    color: #e91e63 !important;
}

/* Pagination */
.pagination .page-link {
    color: #e91e63;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #e91e63 0%, #f5576c 100%);
    border-color: #e91e63;
}

/* Dropdown hover */
.dropdown-item:hover {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

/* Table hover */
.table-hover tbody tr:hover {
    background: rgba(233, 30, 99, 0.05);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e91e63 0%, #f5576c 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d81b60 0%, #e64a5f 100%);
}

/* Loading spinner color */
.spinner-border {
    color: #e91e63;
}

/* Progress bar */
.progress-bar {
    background: linear-gradient(135deg, #e91e63 0%, #f5576c 100%);
}

/* Input group text */
.input-group-text {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    border-color: rgba(233, 30, 99, 0.2);
}

/* Newsletter section adjustment */
.card.bg-primary {
    background: linear-gradient(135deg, var(--mg-gradient-start) 0%, var(--mg-gradient-end) 100%) !important;
}

/* Fix white button hover text */
.btn-white:hover {
    background: #f8f9fa !important;
    color: #e91e63 !important;
    border-color: #e91e63 !important;
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
    /* Fix word spacing issues in Firefox */
    body, p, span, div, a, button, input, textarea, select {
        word-spacing: normal;
        letter-spacing: normal;
    }
    
    /* Ensure consistent font rendering */
    * {
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Remove transitions for theme toggle for instant feedback */
[data-bs-theme] * {
    transition: none;
}

/* Add transitions back after theme change */
[data-bs-theme] {
    transition: all 0.3s ease;
}