/**
 * Theme CSS - Centralized Color and Style System
 * Prabidhi Solution
 * Color Palette: https://colorhunt.co/palette/0c2b4e1a3d641d546cf4f4f4
 */

:root {
    /* Font Family - Premium Soft */
    --font-sans: 'Poppins', 'system-ui', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'sans-serif';
    --font-display: 'Playfair Display', 'Georgia', 'serif';
    
    /* Primary Colors - Navy Blue Palette */
    --color-primary: #0c2b4e;        /* Dark Navy */
    --color-primary-dark: #081a2e;   /* Darker Navy */
    --color-primary-light: #1a3d64;  /* Medium Blue */
    --color-primary-lighter: #1d546c; /* Light Blue */
    --color-primary-bg: #f4f4f4;     /* Light Gray Background */
    
    /* Secondary Colors */
    --color-secondary: #1a3d64;
    --color-secondary-light: #1d546c;
    
    /* Text Colors */
    --color-text-primary: #0c2b4e;
    --color-text-secondary: #1a3d64;
    --color-text-light: #1d546c;
    --color-text-muted: #6b7280;
    
    /* Background Colors */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f4f4f4;
    --color-bg-dark: #0c2b4e;
    
    /* Border Colors */
    --color-border-light: #e5e7eb;
    --color-border-primary: #1a3d64;
    --color-border-secondary: #1d546c;
    
    /* Status Colors */
    --color-success: #d1fae5;
    --color-success-text: #065f46;
    --color-error: #fee2e2;
    --color-error-text: #991b1b;
    
    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Button Sizing */
    --btn-height: 48px;
    --btn-padding-x: 24px;
    --btn-font-size: 16px;
}

/* Theme Utility Classes */
.theme-primary {
    color: var(--color-primary);
}

.theme-primary-bg {
    background-color: var(--color-primary);
}

.theme-primary-border {
    border-color: var(--color-primary);
}

.theme-primary-hover:hover {
    background-color: var(--color-primary-dark);
}

.theme-text-primary {
    color: var(--color-text-primary);
}

.theme-text-secondary {
    color: var(--color-text-secondary);
}

.theme-text-light {
    color: var(--color-text-light);
}

.theme-bg-primary {
    background-color: var(--color-bg-primary);
}

.theme-bg-secondary {
    background-color: var(--color-bg-secondary);
}

.theme-bg-dark {
    background-color: var(--color-bg-dark);
}

.theme-border {
    border-color: var(--color-border-light);
}

.theme-border-primary {
    border-color: var(--color-border-primary);
}

/* Card Styles - Smooth and Optimized */
.theme-card {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid var(--color-border-light);
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(12, 43, 78, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-card-hover:hover {
    box-shadow: 0 8px 24px rgba(12, 43, 78, 0.12);
    border-color: var(--color-border-primary);
}

.theme-card-hover:hover::before {
    opacity: 0.6;
}

/* Button Styles - Consistent Sizing and Format */
.theme-btn {
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: transparent solid 0px;
    outline-offset: 3px;
    overflow: visible;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
    line-height: 28px;
    padding: 10px 20px;
    width: auto;
    font-family: var(--font-sans);
    font-weight: 600;
    transition: all 0.2s;
}

.theme-btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(12, 43, 78, 0.25);
    position: relative;
    overflow: hidden;
}

.theme-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.theme-btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    box-shadow: 0 6px 16px rgba(12, 43, 78, 0.35);
}

.theme-btn-primary:hover::before {
    left: 100%;
}

.theme-btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    position: relative;
    overflow: hidden;
}

.theme-btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.theme-btn-secondary:hover {
    color: white;
    border-color: var(--color-primary-dark);
}

.theme-btn-secondary:hover::before {
    width: 100%;
}

.theme-btn-outline {
    background-color: white;
    color: var(--color-primary);
    border: 2px solid var(--color-border-primary);
}

.theme-btn-outline:hover {
    background-color: var(--color-bg-secondary);
    border-color: var(--color-primary);
}

/* Button with full width */
.theme-btn-full,
.theme-btn.w-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button Sizes */
.theme-btn-sm {
    padding: 8px 16px;
    line-height: 24px;
    font-size: 14px;
    border-radius: 12px;
}

.theme-btn-lg {
    padding: 12px 24px;
    line-height: 32px;
    font-size: 18px;
    border-radius: 20px;
}

/* Heading Styles */
.theme-heading {
    font-family: var(--font-display) !important;
    color: var(--color-text-primary);
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Global Font Application */
body, html {
    font-family: var(--font-sans) !important;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display) !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}

button, a, input, textarea, select {
    font-family: var(--font-sans) !important;
}

/* Section Consistency */
.theme-section {
    padding: 6rem 0;
}

.theme-section-alt {
    padding: 6rem 0;
}

/* Consistent Container Alignment */
.max-w-7xl {
    max-width: 80rem;
}

/* Consistent Spacing */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.theme-heading-accent {
    color: var(--color-primary);
}

/* Section Styles */
.theme-section {
    padding: 6rem 0;
}

.theme-section-alt {
    background-color: var(--color-bg-secondary);
}

/* Gradient Utilities - Subtle Aesthetic Gradients */
.theme-gradient-primary {
    background: linear-gradient(135deg, rgba(12, 43, 78, 0.03) 0%, rgba(26, 61, 100, 0.02) 100%);
}

.theme-gradient-secondary {
    background: linear-gradient(135deg, rgba(244, 244, 244, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
}

.theme-gradient-overlay {
    background: linear-gradient(180deg, rgba(12, 43, 78, 0.05) 0%, transparent 100%);
}

.theme-gradient-card {
    background: linear-gradient(135deg, #ffffff 0%, rgba(244, 244, 244, 0.5) 100%);
}

.theme-gradient-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(240, 247, 255, 0.6) 50%, rgba(248, 240, 255, 0.4) 100%);
}

/* Hero Gradient Background - From Uiverse.io by kencode7 */
.hero-gradient-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        #fff 0%,
        #fff 40%,
        rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(to right, #0ed2da, #5f29c7);
    position: relative;
    overflow: hidden;
}

/* Hero Section with Smooth Border Radius */
.hero-section-rounded {
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .hero-section-rounded {
        margin: 1.5rem auto 0;
        width: calc(100% - 3rem);
        max-width: 100%;
        border-radius: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-section-rounded {
        margin: 2rem auto 0;
        width: calc(100% - 4rem);
        max-width: 100%;
        border-radius: 3rem;
    }
}

/* Full Width Hero Slider */
.hero-full-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-full-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
}

.hero-full-slide-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-full-slide-dot:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

.hero-gradient-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, #ccc 1px, transparent 1px);
    background-size: 50px 100%;
    pointer-events: none;
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) 70%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) 70%
    );
}

.theme-gradient-section-alt {
    background: linear-gradient(180deg, rgba(244, 244, 244, 0.3) 0%, rgba(255, 255, 255, 1) 100%);
}

/* Section Background Patterns */
.theme-section-bg {
    position: relative;
}

.theme-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(12, 43, 78, 0.02) 0%, transparent 50%, rgba(26, 61, 100, 0.02) 100%);
    pointer-events: none;
    z-index: 0;
}

.theme-section-bg > * {
    position: relative;
    z-index: 1;
}

/* Input Styles */
.theme-input {
    border: 1px solid var(--color-border-light);
    border-radius: 0.5rem;
    color: var(--color-text-primary);
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
    transition: all 0.2s;
}

.theme-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(12, 43, 78, 0.1);
}

.theme-input::placeholder {
    color: var(--color-text-muted);
}

/* Icon Container */
.theme-icon-container {
    background: linear-gradient(135deg, rgba(12, 43, 78, 0.1) 0%, rgba(26, 61, 100, 0.08) 100%);
    color: var(--color-primary);
    border-radius: 0.75rem;
    padding: 0.75rem;
    box-shadow: 0 2px 4px rgba(12, 43, 78, 0.05);
    transition: all 0.3s ease;
}

.theme-icon-container:hover {
    background: linear-gradient(135deg, rgba(12, 43, 78, 0.15) 0%, rgba(26, 61, 100, 0.12) 100%);
    box-shadow: 0 4px 8px rgba(12, 43, 78, 0.1);
}

/* Success/Error Messages */
.theme-success {
    background-color: var(--color-success);
    color: var(--color-success-text);
    border: 1px solid #10b981;
    padding: 1rem;
    border-radius: 0.5rem;
}

.theme-error {
    background-color: var(--color-error);
    color: var(--color-error-text);
    border: 1px solid #ef4444;
    padding: 1rem;
    border-radius: 0.5rem;
}

/* Badge/Tag Styles */
.theme-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    background-color: rgba(12, 43, 78, 0.1);
    color: var(--color-primary);
}

/* Link Styles */
.theme-link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.theme-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    transition: width 0.3s ease;
}

.theme-link:hover {
    color: var(--color-primary-dark);
}

.theme-link:hover::after {
    width: 100%;
}

/* Premium Navigation Styles */
.nav-premium {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(12, 43, 78, 0.1);
    box-shadow: 0 4px 16px rgba(12, 43, 78, 0.1);
}

/* Alternative: Use theme color for nav background */
.nav-premium.theme-nav-bg {
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: 0 2px 8px rgba(12, 43, 78, 0.08);
}

/* Premium Nav Links */
.nav-link-premium {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 15px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 43, 78, 0.08) 0%, rgba(26, 61, 100, 0.05) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link-premium:hover {
    color: var(--color-primary);
    background: rgba(12, 43, 78, 0.06);
}

.nav-link-premium:hover::before {
    opacity: 1;
}

.nav-link-premium span {
    position: relative;
    z-index: 1;
}

/* Premium Dropdown */
.nav-dropdown-premium {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(12, 43, 78, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
}

.group:hover .nav-dropdown-premium {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    margin: 4px 8px;
    transition: all 0.2s ease;
}

.nav-dropdown-item i {
    font-size: 18px;
    color: var(--color-primary);
    opacity: 0.7;
}

.nav-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(12, 43, 78, 0.08) 0%, rgba(26, 61, 100, 0.05) 100%);
    color: var(--color-primary);
}

.nav-dropdown-item:hover i {
    opacity: 1;
}

/* Mobile Nav Links */
.nav-mobile-link {
    display: block;
    padding: 14px 16px;
    color: var(--color-text-secondary);
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.nav-mobile-link:hover {
    background: linear-gradient(135deg, rgba(12, 43, 78, 0.08) 0%, rgba(26, 61, 100, 0.05) 100%);
    color: var(--color-primary);
}

/* Heading Gradient Accent */
.theme-heading-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Title Enhancement */
.section-title-wrapper {
    position: relative;
    display: inline-block;
}

.section-title-wrapper::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    margin-left: -30px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
    border-radius: 2px;
}

/* Footer Link Styles */
.theme-link-footer {
    position: relative;
    display: inline-block;
}

.theme-link-footer::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    transition: width 0.3s ease;
}

.theme-link-footer:hover::after {
    width: 100%;
}

/* Danger/Delete Button Style */
.theme-btn-danger {
    background-color: #dc2626;
    color: white;
    border: 2px solid #dc2626;
}

.theme-btn-danger:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}
