/* Custom Colors */
:root {
    --primary-color: #4a6da7;
    --secondary-color: #e83e8c;
    --accent-color: #ffbe0b;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --muted-text: #6c757d;
    --border-color: #dee2e6;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.25);
    
    /* New Color Palette */
    --purple-primary: #6f42c1;
    --purple-light: #a78bfa;
    --purple-dark: #4c1d95;
    --teal-primary: #20c997;
    --teal-light: #5eead4;
    --teal-dark: #0f766e;
    --orange-primary: #fd7e14;
    --orange-light: #fbbf24;
    --orange-dark: #ea580c;
    --pink-primary: #e91e63;
    --pink-light: #f472b6;
    --pink-dark: #be185d;
    --indigo-primary: #6366f1;
    --indigo-light: #a5b4fc;
    --indigo-dark: #3730a3;
    --emerald-primary: #10b981;
    --emerald-light: #6ee7b7;
    --emerald-dark: #047857;
}

/* Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-attachment: fixed;
    color: var(--dark-text);
    line-height: 1.6;
    position: relative;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(111, 66, 193, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(32, 201, 151, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(253, 126, 20, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

main {
    flex: 1;
    padding-top: 1rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

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

/* Enhanced Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple-primary) 50%, #3b5998 100%) !important;
    box-shadow: 0 2px 10px var(--shadow-medium);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 0 1px 2px var(--shadow-medium);
    background: linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-1px);
    text-shadow: 0 1px 2px var(--shadow-light);
    color: white !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .btn {
        padding: 0.375rem 0.5rem;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
}

/* Enhanced Card Styles */
.card {
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px var(--shadow-light);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--purple-primary), var(--teal-primary), var(--orange-primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-medium) !important;
}

.card-header {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple-primary) 100%);
    color: white;
    font-weight: 600;
    border-bottom: none;
    padding: 10px 20px;
}

.card-footer {
    border-bottom-left-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

/* Enhanced Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple-primary) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(74, 109, 167, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--emerald-primary) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--pink-primary) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, var(--orange-primary) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, var(--teal-primary) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

/* Enhanced Form Styles */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(74, 109, 167, 0.25);
    transform: translateY(-1px);
    background: white;
}

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

/* Enhanced Religious Badges */
.religious-badge {
    display: inline-block;
    padding: 0.4em 0.8em;
    font-size: 0.8em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 20px;
    background-color: #e9ecef;
    color: var(--dark-text);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-light);
}

.religious-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.religious-badge.secular {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--dark-text);
}

.religious-badge.traditional {
    background: linear-gradient(135deg, var(--indigo-light) 0%, var(--indigo-primary) 100%);
    color: white;
}

.religious-badge.modern_orthodox {
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal-primary) 100%);
    color: white;
}

.religious-badge.yeshivish {
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-primary) 100%);
    color: white;
}

.religious-badge.hassidic {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%);
    color: white;
}

/* Enhanced Match Score */
.match-score {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-medium);
    position: relative;
    padding: 0;
    text-align: center;
    line-height: 1;
}

.match-score::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.match-score.high {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--emerald-primary) 100%);
}

.match-score.medium {
    background: linear-gradient(135deg, var(--warning-color) 0%, var(--orange-primary) 100%);
}

.match-score.low {
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--pink-primary) 100%);
}

/* Enhanced Progress Bars */
.progress {
    border-radius: 10px;
    background-color: #e9ecef;
    box-shadow: inset 0 1px 3px var(--shadow-light);
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced Table Styles */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple-primary) 100%);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(111, 66, 193, 0.05);
    transform: scale(1.01);
}

/* Enhanced Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px var(--shadow-light);
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--success-color);
    border-left: 4px solid var(--emerald-primary);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(233, 30, 99, 0.1) 100%);
    color: var(--danger-color);
    border-left: 4px solid var(--pink-primary);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(253, 126, 20, 0.1) 100%);
    color: #856404;
    border-left: 4px solid var(--orange-primary);
}

.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    color: var(--info-color);
    border-left: 4px solid var(--teal-primary);
}

/* Enhanced Footer */
footer {
    background: linear-gradient(135deg, var(--dark-text) 0%, var(--purple-dark) 100%);
    color: white;
    margin-top: auto;
    box-shadow: 0 -2px 10px var(--shadow-medium);
}

/* Responsive table */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }
    
    .compatibility-table th, .compatibility-table td {
        white-space: nowrap;
    }
}

/* Bottom navigation for mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 -2px 10px var(--shadow-medium);
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        border-top: 1px solid var(--border-color);
    }
    
    .mobile-bottom-nav a {
        color: var(--muted-text);
        text-decoration: none;
        text-align: center;
        font-size: 0.7rem;
        transition: all 0.3s ease;
        padding: 5px;
        border-radius: 8px;
    }
    
    .mobile-bottom-nav a i {
        font-size: 1.2rem;
        display: block;
        margin-bottom: 2px;
    }
    
    .mobile-bottom-nav a.active {
        color: var(--primary-color);
        background: rgba(111, 66, 193, 0.1);
    }
    
    main {
        padding-bottom: 70px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced User Cards */
.user-card {
    transition: all 0.3s ease;
}

.user-card:hover {
    transform: translateY(-5px);
}

.user-card .card {
    border-radius: 15px;
    overflow: hidden;
}

.user-card .card-body {
    padding: 1.5rem;
}

/* Enhanced Form Sections */
.form-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-section h4 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Enhanced Compatibility Table */
.compatibility-table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.compatibility-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple-primary) 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.compatibility-table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Enhanced Stats Cards */
.stats-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--purple-primary), var(--teal-primary), var(--orange-primary));
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.stats-card .stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-card .stats-label {
    color: var(--muted-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Search and Filter */
.search-filter-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-filter-card .card-body {
    padding: 1.5rem;
}

/* Enhanced Navigation Breadcrumbs */
.breadcrumb {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--muted-text);
}

/* Enhanced Pagination */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple-primary) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

/* Color Theme Variations */
.theme-purple {
    --primary-color: var(--purple-primary);
}

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

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

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

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

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

/* Floating Elements Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--purple-primary), var(--teal-primary), var(--orange-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Enhanced Badge Colors */
.badge.bg-purple {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%) !important;
}

.badge.bg-teal {
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-dark) 100%) !important;
}

.badge.bg-orange {
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%) !important;
}

.badge.bg-pink {
    background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-dark) 100%) !important;
}

.badge.bg-indigo {
    background: linear-gradient(135deg, var(--indigo-primary) 0%, var(--indigo-dark) 100%) !important;
}

.badge.bg-emerald {
    background: linear-gradient(135deg, var(--emerald-primary) 0%, var(--emerald-dark) 100%) !important;
} 