/* Global CSS for EasyNikkah.pk */
/* Common variables, header navigation, forms, and shared styles */

:root {
    --text-light: #453b37;
    --text-lighter: #4c4441;
    --bg-light: #fdf8f9;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --primary-color: #A674B3;
    --primary-dark: #CDA4DE;
    --primary-darker: #9E6BA3;
    --primary-darkest: #5C3F61;
    --light-purple: #F4E4F8;
    --lighter-input-bg: #FAF2FC;
    --next-button-color: #9E6BA3;
    --lighter-border: #D1A3DC;
    --text-color: #4d4d4d;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --input-bg: #fdf8f9;
}

/* dev.
    --text-light: #453b37;
    --text-lighter: #4c4441;
    --bg-light: #fdf8f9;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --primary-color: #b37474;
    --primary-dark: #dea4a4;
    --primary-darker: #a36b6b;
    --primary-darkest: #613f3f;
    --light-purple: #f4e4f8;
    --lighter-input-bg: #faf2fc;
    --next-button-color: #a36b6b;
    --lighter-border: #dca3a3;
    --text-color: #4d4d4d;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --input-bg: #fdf8f9;
 */

/* Global Body Styles */
body {
    font-family: Poppins, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;

    -webkit-font-smoothing: antialiased; /* For WebKit browsers (Chrome, Safari) */
    -moz-osx-font-smoothing: grayscale; /* For Firefox on macOS */
    text-rendering: optimizeLegibility; /* Better kerning and ligatures */
}

.auth-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center;
}

.auth-screen > * {
    width: 100%;
}

.s-page {
    margin: auto;
    flex-grow: 1;
}

/* Header Navigation - Common across all pages */
.main-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(166, 116, 179, 0.1) !important;
    box-shadow: 0 4px 20px rgba(166, 116, 179, 0.08) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    padding: 0.65rem 0 !important;
}

.navbar-brand {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: var(--text-color) !important;
}

.navbar-brand:hover {
    color: var(--text-color) !important;
    text-decoration: none !important;
}

.logo-icon {
    width: 30px !important;
    height: 30px !important;
    background: var(--primary-color) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 0.75rem !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 18px !important;
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.brand-text {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: var(--primary-color) !important;
}

.nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu li a {
    color: var(--text-color) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.9rem !important;
    opacity: 0.9 !important;
}

.nav-menu li a:hover {
    background: var(--light-purple) !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.nav-menu li a.active {
    background: var(--primary-color) !important;
    color: white !important;
}

.nav-menu li a.active:hover {
    background: var(--primary-darker) !important;
    color: white !important;
}

/* Page Headers - Common styling */
.page-header {
    background: white;
    border-bottom: 1px solid rgba(166, 116, 179, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    padding: 2rem 0;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-darker);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Common Form Elements */

.form-control,
.form-select {
    border-radius: 5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;

    background-color: var(--input-bg);
    color: var(--text-color);
    margin-bottom: 2rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(166, 116, 179, 0.15);
    background-color: white;
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* Common Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 12px rgba(166, 116, 179, 0.25);
}

.btn-outline-primary {
    border: 1.5px solid var(--lighter-border);
    color: var(--text-light);
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
}

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

.btn-outline-primary:disabled {
    border-color: #ccc;
    color: var(--text-lighter);
    background: #f8f9fa;
    cursor: not-allowed;
    transform: none;
}

/* Common Check Inputs */
.form-check-input {
    border: 1.5px solid var(--lighter-border);
}

.form-check-input:checked {
    background-color: var(--next-button-color);
    border-color: var(--next-button-color);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Common placeholders */
.form-control::placeholder,
.form-select option:first-child {
    color: var(--text-lighter);
    font-size: 0.85rem;
}

/* Common Card Styling */

.card,
.info-card {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(166, 116, 179, 0.1);
    box-shadow: rgba(0, 0, 0, 0.25) 0 25px 50px -15px !important;
    /*box-shadow: 0 2px 8px rgba(166, 116, 179, 0.06);*/
}

.card:hover,
.info-card:hover {
    box-shadow: 0 8px 25px rgba(166, 116, 179, 0.12);
}

/* Search Elements */
.search-input {
    background: white;
    border: 2px solid rgba(166, 116, 179, 0.15);
    border-radius: 12px 0 0 12px;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-right: none;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(166, 116, 179, 0.1);
    background: white;
}

.search-btn {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-dark) 100%
    );
    border: 2px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    color: white;
    padding: 0.75rem 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: none;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(166, 116, 179, 0.3);
    color: white;
    background: linear-gradient(
        135deg,
        var(--primary-dark) 0%,
        var(--primary-darker) 100%
    );
}

.btn.no-hover:hover,
.btn.no-hover:focus {
    background-color: inherit !important;
    color: inherit !important;
    border-color: inherit !important;
}

footer,
footer a {
    color: var(--white);
    text-decoration: none;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem !important;
    }

    .nav-menu li a {
        padding: 0.5rem !important;
        font-size: 0.9rem !important;
    }

    .page-title {
        font-size: 1.8rem !important;
    }

    .page-header {
        padding: 1.5rem 0 !important;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .nav-menu {
        gap: 0.5rem !important;
    }

    .nav-menu li a span {
        display: none !important;
    }

    .page-title {
        font-size: 1.5rem !important;
    }

    .brand-text {
        font-size: 1.1rem !important;
    }

    .logo-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
    }
}

/* Common utility classes */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

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

.text-lighter-custom {
    color: var(--text-lighter);
}

.bg-light-purple {
    background-color: var(--light-purple);
}

/* Common animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}
