/* ========================================
   Shri Maratha Vadhu Var - Main Stylesheet
   Royal Elegance Theme
   ======================================== */

/* ========================================
   CSS Variables & Theme Colors
   ======================================== */
:root {
    /* Royal Elegance Theme - Professional Matrimony */
    --primary-color: #A0153E;        /* Deep Burgundy - Tradition & Commitment */
    --primary-dark: #7A0E2E;         /* Darker Burgundy */
    --primary-light: #D4A5B0;        /* Light Burgundy/Rose */
    --secondary-color: #C9A961;      /* Champagne Gold - Elegance */
    --accent-color: #1E3A5F;         /* Navy Blue - Trust & Professionalism */
    --success-color: #2D6A4F;        /* Forest Green */
    --danger-color: #C1121F;         /* Deep Red */
    --text-dark: #1A1A1A;            /* Almost Black */
    --text-light: #6B7280;           /* Gray */
    --bg-light: #F9FAFB;             /* Off White */
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    
    /* Gradients */
    --gradient-1: linear-gradient(135deg, #A0153E 0%, #5F0A1F 100%);
    --gradient-custom: linear-gradient(135deg, #A0153E 0%, #C9A961 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(160, 21, 62, 0.08);
    --shadow-md: 0 4px 16px rgba(160, 21, 62, 0.12);
    --shadow-lg: 0 8px 32px rgba(160, 21, 62, 0.16);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo i {
    font-size: 2rem;
}

.nav,
.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a,
.header-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav a.active::after,
.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-custom);
}

.notification-badge {
    position: absolute;
    top: -15px;
    right: -20px;
    background: var(--primary-color);
    color: white;
    min-width: 20px;
    height: 15px;
    border-radius: 10px;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.4rem;
    font-weight: 600;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-custom);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    min-width: 200px;
    display: none;
    flex-direction: column;
}

.user-dropdown.active {
    display: flex;
}

.user-dropdown a {
    padding: 0.875rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.user-dropdown a:first-child {
    border-radius: 12px 12px 0 0;
}

.user-dropdown a:last-child {
    border-radius: 0 0 12px 12px;
}

.user-dropdown a.danger {
    color: var(--danger-color);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-custom);
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8B1538 0%, #D4AF37 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 21, 62, 0.3);
}

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

.btn-outline:hover {
    background: var(--gradient-custom);
    color: white !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 21, 62, 0.3);
}

.btn-secondary {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-success {
    background: var(--success-color);
    color: white !important;
}

.btn-success:hover {
    background: #245A3F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.3);
}

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

.btn-white:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem 3rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

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

/* ========================================
   Cards & Panels
   ======================================== */
.card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md), 0 12px 24px rgba(160, 21, 62, 0.15);
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(160, 21, 62, 0.1);
}

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

.required {
    color: var(--danger-color);
}

.form-help {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ========================================
   Badges & Status
   ======================================== */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-primary {
    background: linear-gradient(135deg, rgba(160, 21, 62, 0.1) 0%, rgba(201, 169, 97, 0.1) 100%);
    color: var(--primary-color);
}

.badge-success {
    background: rgba(45, 106, 79, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(201, 169, 97, 0.1);
    color: var(--secondary-color);
}

/* ========================================
   Tabs
   ======================================== */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-custom);
}

.tab-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.5rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

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

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

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .nav,
    .header-nav {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .container {
        padding: 0 1rem 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
}

