/* Modern Premium Design System - Calm & Cream Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette (Dark Pink / Rose Premium Theme) */
    --bg-main: #fdf4f7; /* Very soft light pink-tinted background */
    --bg-card: #ffffff; /* Pure white cards */
    --bg-card-hover: #ffffff;
    --border-color: rgba(0, 0, 0, 0.05); /* Very soft dark border */
    --border-glow: rgba(219, 39, 119, 0.2);
    
    --text-primary: #1e293b; /* Deep slate/charcoal */
    --text-secondary: #4a5568; /* Slate grey */
    --text-muted: #718096; /* Medium slate */
    --text-light: #9ca3af;
    
    --primary: #be185d; /* Dark Pink / Rose 700 */
    --primary-glow: rgba(190, 24, 93, 0.08);
    --primary-gradient: linear-gradient(135deg, #9d174d 0%, #db2777 100%);
    --secondary: #9d174d; /* Plum/Deep Pink */
    --secondary-gradient: linear-gradient(135deg, #881337 0%, #be185d 100%);
    --accent: #4a5568; /* Steel Slate */
    --danger: #ef4444;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Effects */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.03), 0 2px 10px -3px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.04), 0 0 40px -5px rgba(190, 24, 93, 0.05);
    --glass-blur: blur(20px);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(217, 119, 6, 0.02) 0%, transparent 50%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-secondary);
}

/* Layout Elements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Premium Header */
header {
    background: rgba(250, 249, 246, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    transition: var(--transition-smooth);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 20px -4px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px -2px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.15);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Hero Section */
.hero {
    padding: 60px 24px;
    text-align: center;
    background: linear-gradient(135deg, #881337 0%, #9d174d 50%, #db2777 100%);
    border-radius: var(--radius-md);
    color: #ffffff;
    margin-bottom: -30px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Glassmorphism Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px; /* Reduced padding */
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.01) 0%, transparent 100%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(43, 108, 176, 0.2);
    box-shadow: var(--shadow-lg);
}

/* Search Bar Component */
.search-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    gap: 12px;
    max-width: 850px;
    margin: 0 auto 40px auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 0 16px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.search-input-group:focus-within {
    border-color: var(--primary);
    background: #ffffff;
}

.search-input-group input, .search-input-group select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    padding: 14px 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}

.search-input-group select option {
    background: #ffffff;
    color: var(--text-primary);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
    box-shadow: var(--shadow-sm);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 32px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-primary {
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
}

.badge-success {
    background: rgba(13, 148, 136, 0.08);
    color: #0d9488;
}

.badge-warning {
    background: rgba(217, 119, 6, 0.08);
    color: #d97706;
}

.badge-danger {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

/* Subscription Plans Page */
.plans-container {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.plan-card {
    flex: 1;
    min-width: 280px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.plan-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.1);
    transform: scale(1.03);
}

.plan-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 20px 0;
    font-family: var(--font-heading);
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    margin: 24px 0;
    text-align: left;
    flex-grow: 1;
}

.plan-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li::before {
    content: "✓";
    color: var(--secondary);
    font-weight: bold;
}

/* Dashboard Styles */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 40px 0;
}

.sidebar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.sidebar-menu a:hover, .sidebar-menu li.active a {
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .search-box {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    .nav-links {
        display: none; /* In a real app we'd have a mobile menu */
    }
}

/* Custom Premium Searchable Dropdown */
.searchable-select-container {
    position: relative;
    width: 100%;
}

.searchable-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}

.searchable-select-trigger:focus-within,
.searchable-select-trigger.active {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(43, 108, 176, 0.1);
}

.searchable-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}

.searchable-select-search-input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.88rem;
    outline: none;
    margin-bottom: 8px;
    font-family: var(--font-body);
    box-sizing: border-box;
}

.searchable-select-search-input:focus {
    border-color: var(--primary);
}

.searchable-select-options-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.searchable-select-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 6px 10px 4px 10px;
    letter-spacing: 0.05em;
    background: #f8fafc;
    border-radius: 4px;
    margin-top: 4px;
}

.searchable-select-option {
    padding: 8px 12px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-fast);
    text-align: left;
}

.searchable-select-option:hover {
    background: var(--primary-glow);
    color: var(--primary);
}

.searchable-select-option.selected {
    background: var(--primary);
    color: #ffffff;
}

.searchable-select-option.hidden {
    display: none !important;
}
