/* Reference Design Variables - Exact Match from oneclickvakil_in_hostinger */
:root {
    --background: 240 10% 99%; /* Softer White */
    --foreground: 224 12% 20%; /* Dark Slate Gray */
    --card: 0 0% 100%;
    --card-foreground: 224 12% 20%;
    --popover: 0 0% 100%;
    --popover-foreground: 224 12% 20%;
    --primary: 250 60% 60%; /* Softer Purple */
    --brand-primary: #705cd6; /* OneClick Vakil Brand Color */
    --primary-foreground: 0 0% 100%;
    --secondary: 240 10% 96%; /* Lighter cool gray */
    --secondary-foreground: 224 12% 20%;
    --muted: 240 10% 96%;
    --muted-foreground: 220 10% 45%;
    --accent: 240 10% 96%;
    --accent-foreground: 224 12% 20%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 240 10% 90%;
    --input: 240 10% 90%;
    --ring: 250 70% 65%;
    --radius: 0.75rem;
}

/* Base Styles - Force Proper Colors */
body {
    font-family: 'Noto Sans Gujarati', sans-serif !important;
    background: hsl(var(--background)) !important;
    color: hsl(var(--foreground)) !important;
}

/* Force all main sections to have proper backgrounds */
.main-content-section {
    background: hsl(var(--background)) !important;
    color: hsl(var(--foreground)) !important;
}

.search-section {
    background: hsl(var(--secondary)) !important;
    color: hsl(var(--foreground)) !important;
}

/* Ensure proper text contrast everywhere */
.text-muted {
    color: hsl(var(--muted-foreground)) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Fix any white text on white background issues */
.bg-white .text-white,
.bg-background .text-white,
section:not(.page-header) .text-white {
    color: hsl(var(--foreground)) !important;
}

/* Force proper colors for all text elements */
/* h1, h2, h3, h4, h5, h6 {
    color: hsl(var(--foreground)) !important;
} */

p, span, div {
    color: inherit;
}

/* Reference Card Component */
.ref-card {
    background: hsl(var(--card)) !important;
    /* color: hsl(var(--card-foreground)) !important; */
    color: white !important;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
}

.ref-card h1, .ref-card h2, .ref-card h3, .ref-card h4, .ref-card h5, .ref-card h6 {
    color: hsl(var(--card-foreground)) !important;
}

.ref-card .text-muted {
    color: hsl(var(--muted-foreground)) !important;
}

.ref-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Enhanced Topic Cards */
.topic-card {
    background: hsl(var(--card)) !important;
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.topic-icon-container {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    min-width: 3rem;
    min-height: 3rem;
}

/* Enhanced Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 2rem;
}

/* Enhanced Grid Layout */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .topic-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Reference Button Component */
.ref-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    height: 2.5rem;
    padding: 0 1rem;
}

.ref-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

.ref-btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.ref-btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.ref-btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
    color: hsl(var(--primary-foreground));
    text-decoration: none;
}

.ref-btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.ref-btn-secondary:hover {
    background: hsl(var(--secondary) / 0.8);
    color: hsl(var(--secondary-foreground));
    text-decoration: none;
}

.ref-btn-outline {
    border: 1px solid hsl(var(--input));
    background: hsl(var(--background));
    color: hsl(var(--foreground));
}

.ref-btn-outline:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    text-decoration: none;
}

.ref-btn-lg {
    height: 2.75rem;
    border-radius: 0.375rem;
    padding: 0 2rem;
}

/* Reference Input Component */
.ref-input {
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--input));
    background: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.ref-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.ref-input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

.ref-input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Reference Tabs Component */
.ref-tabs-list {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    background: hsl(var(--muted));
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.ref-tabs-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 0.125rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.ref-tabs-trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

.ref-tabs-trigger:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.ref-tabs-trigger[data-state="active"] {
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.ref-tabs-content {
    margin-top: 0.5rem;
}

.ref-tabs-content:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

/* Topic/Law Card Styles */
/* Topic Card - Exact Reference Match */
.topic-card {
    background: hsl(var(--card)) !important;
    color: hsl(var(--card-foreground)) !important;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border-color: hsl(var(--primary));
}

.topic-card h1, .topic-card h2, .topic-card h3, .topic-card h4, .topic-card h5, .topic-card h6 {
    color: hsl(var(--card-foreground)) !important;
}

.topic-card .text-muted {
    color: hsl(var(--muted-foreground)) !important;
}

/* Topic Icon Container - Exact Reference Match */
.topic-icon-container {
    color: hsl(var(--primary));
    padding: 0.75rem;
    background: hsl(var(--primary) / 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.topic-card:hover .topic-icon-container {
    background: hsl(var(--primary) / 0.2);
    transform: scale(1.05);
}

/* Search Suggestions */
.search-suggestions {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.search-suggestion-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid hsl(var(--border));
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-suggestion-item:hover {
    background: hsl(var(--muted));
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

/* Enhanced Plan Selection */
.plan-option {
    transition: all 0.3s ease;
}

.plan-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: hsl(var(--primary)) !important;
}

.plan-option.selected {
    border-color: hsl(var(--primary)) !important;
    background: hsl(var(--primary) / 0.1) !important;
}

.topic-icon {
    color: hsl(var(--primary));
    padding: 0.75rem;
    background: hsl(var(--primary) / 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(250 70% 70%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 1.75rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(250 70% 70%));
    color: white;
}

/* Breadcrumb */
.ref-breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255,255,255,0.5);
}

.ref-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ref-breadcrumb .breadcrumb-item a:hover {
    color: white;
}

.ref-breadcrumb .breadcrumb-item.active {
    color: white;
}

/* Premium Benefits */
.premium-benefits {
    background: hsl(var(--primary) / 0.05);
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
}

.premium-benefits h5 {
    color: hsl(var(--primary));
    margin-bottom: 0.75rem;
}

.premium-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-benefits li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #374151 !important; /* Dark gray text for readability */
}

/* Subscribed Status */
.subscribed-status {
    background: #d1edff;
    color: #0c63e4;
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
}

/* Pricing Plan Cards */
.pricing-plan {
    background: hsl(var(--muted));
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pricing-plan:hover {
    transform: scale(1.02);
    background: hsl(var(--card));
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.1);
}

.pricing-plan .plan-price {
    color: hsl(var(--primary));
    font-weight: 600;
}

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

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

.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

/* Enhanced button styles */
.ref-btn-lg {
    height: 2.75rem;
    padding: 0 2rem;
    font-size: 1rem;
}

/* Disabled button state */
.ref-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading state */
.ref-btn.loading {
    position: relative;
    color: transparent;
}

.ref-btn.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced premium benefits */
.premium-benefits ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #374151 !important; /* Dark gray text for readability */
}

.premium-benefits ul li i {
    color: #10b981 !important; /* Green color for check icons */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ref-tabs-list {
        width: 100%;
        grid-template-columns: 1fr 1fr;
        display: grid;
    }

    .topic-card {
        margin-bottom: 1rem;
    }
}
