﻿/* Root & fonts */

:root {
    --nav-height: 80px;
    --primary-1: #0061a8;
    --primary-2: #00b4d8;
    --primary-color: #0d6efd; /* Example: Bootstrap Blue */
    --primary-color-light: #e7f0fe; /* A light version of the blue */
    --text-color-dark: #343a40;
}

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap'); /* Apply Tajawal globally */

body, h1, h2, h3, h6, p, label, a, span, input, textarea, button {
    font-family: 'Tajawal', sans-serif;
}

body {
    margin: 0;
}
/* Top social bar */

.top-bar {
    z-index: 1031;
}

    .top-bar a {
        font-size: 16px;
        transition: color 0.3s ease;
    }

        .top-bar a:hover {
            color: #1f3b73; /* Dark blue hover */
        }
/* Navbar styles */

/* =================================================================== */
/* 13. Custom Styling for Bootstrap Navbar                           */
/* =================================================================== */

/* --- Main Navbar Container --- */
.main-navbar {
    top: 40px; /* Adjust if your top-bar has a different height */
    transition: all 0.3s ease-in-out;
}

/* For screens 768px wide or smaller (typical mobile/tablet breakpoint) */
@media (max-width: 768px) {
    .main-navbar {
        top: 0px;
    }
}

/* --- Scrolled State (added by JavaScript) --- */
.main-navbar.scrolled {
    top: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; /* Stronger shadow */
}
@media (max-width: 768px) {
    .main-navbar.scrolled {
        top: 0px;
    }
}

/* --- Logo Styling --- */
.main-navbar .logo img {
    height: 60px;
    transition: height 0.3s ease-in-out;
}

.main-navbar.scrolled .logo img {
    height: 50px; /* Logo shrinks on scroll */
}

/* --- Styling the Navigation Links (Desktop) --- */
.main-navbar .nav-link {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    font-weight: 600;
    color: #1f3b73 !important; /* Your dark blue color */
    padding: 9px 12px !important;
    margin-right:40px; 
    margin-left:5px;
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease;
    font-size:13px;
}

/* --- Pill Hover/Active Effect --- */
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    background-color: #0056b3;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
    margin-top:8px;
}

/* --- Styling icons within the links --- */
.main-navbar .nav-link i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.main-navbar .nav-link:hover i {
    transform: scale(1.1);
}

/* --- Mobile Menu Adjustments --- */
/* The navbar-expand-lg class handles the switch at 992px */
@media (max-width: 991.98px) {
    .main-navbar .navbar-nav {
        margin-top: 15px; /* Add some space above the links in mobile view */
    }

    .main-navbar .nav-link {
        justify-content: center; /* Center icon and text within the link */
        padding: 12px 20px !important;
    }
    
    .main-navbar .nav-link:hover,
    .main-navbar .nav-link.active {
        /* Disable the lift effect on mobile for a smoother feel */
        transform: translateY(0);
    }
}
/* Form section */

.form-section {
    min-height: 100vh;
    background: #f8f9fa;
}
/* Footer styling */

.footer {
    background: #1f3b73;
}

.footer-logo {
    width: 120px;
}

.footer p, .footer li, .footer small, .footer-links a {
    color: #dcdcdc;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: #28a745;
}

.footer-bottom a {
    font-size: 18px;
    transition: color 0.3s ease;
}

    .footer-bottom a:hover {
        color: #1f3b73;
    }
/*registration*/ /* Register.css */ /* Register.css - Full-width with Icons */

body {
    background-color: #f5f7fb;
    font-family: 'Tahoma', Arial, sans-serif;
    margin: 0;
    padding: 0;
}
/* Full-width header */ /* Header section */

.form-header {
    background: linear-gradient(135deg, #0061a8, #00b4d8);
    color: #fff;
    font-weight: bold;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

    .form-header h2 {
        margin: 0;
        font-size: 1.8rem;
    }
/* Registration card */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', Tahoma, Arial, sans-serif;
    direction: rtl;
    text-align: right;
    background: #f5f7fa; /* default padding to avoid overlay by navbar; JS updates --nav-height at runtime */
    padding-top: 30px;
}
/* Mobile view: remove padding */
@media (max-width: 768px) {
    html, body {
        padding-top: 0;
    }
}
/* Header (full width) */

.form-header {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    border-radius: 0 0 12px 12px;
}

    .form-header h2 {
        margin: 0;
        padding: 18px 0;
        font-size: 1.25rem;
        font-weight: 700;
    }
/* Registration card - full width up to max */

.register-card {
    width: 100%;
    max-width: 1100px;
    border-radius: 14px;
    background: #fff;
    margin: 30px auto;
    box-shadow: 0 10px 25px rgba(16,24,40,0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

    .register-card .card-body {
        padding: 28px;
    }

    .register-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(16,24,40,0.14);
    }
/* Grid */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group.full {
        grid-column: 1 / -1;
    }
    /* Labels */

    .form-group label {
        font-size: 16px;
        color: #222;
        margin-bottom: 8px;
        font-weight: 600;
    }
/* Input wrapper */

.input-wrapper {
    position: relative;
}
    /* Default icons inside inputs */

    .input-wrapper i:not(.toggle-password) {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #6b7280;
        font-size: 16px;
        pointer-events: none;
    }
/* Inputs */

.input-field {
    width: 100%;
    padding: 10px 44px 10px 12px; /* right-padding reserved for icons */
    border-radius: 10px;
    border: 1px solid #e6e9ef;
    font-size: 16px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

    .input-field.form-select {
        padding-right: 12px; /* dropdown adjustment */
    }

    .input-field:focus {
        outline: none;
        border-color: var(--primary-2);
        box-shadow: 0 0 8px rgba(0,180,216,0.15);
    }
/* Flatpickr calendar */

.flatpickr-calendar {
    direction: rtl;
    font-family: 'Tajawal', Tahoma, Arial, sans-serif;
    border-radius: 10px;
}
/* Buttons */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
    border: none;
    color: #fff;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 12px;
    font-weight:bold;
    transition: transform 0.2s ease, filter 0.2s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        filter: brightness(0.95);
    }
/* Validation messages */

.text-danger {
    font-size: 0.92rem;
    margin-top: 6px;
}

.validation-summary {
    margin-top: 12px;
    color: #b91c1c;
}
/* Dropdown icon spacing */

.input-wrapper select.input-field {
    padding-right: 50px;
    line-height: 1.5;
}
/* -------------------- PASSWORD FIELD -------------------- */

.password-wrapper {
    position: relative;
}
    /* Lock icon on right */

    .password-wrapper i.fa-lock {
        position: absolute !important;
        right: 12px !important; /* always on the right */
        left: auto !important;
        top: 50%;
        transform: translateY(-50%);
        color: #6b7280;
        font-size: 16px;
        pointer-events: none;
    }
    /* Eye toggle icon on left */

    .password-wrapper i.toggle-password {
        position: absolute !important;
        left: 12px !important; /* always on the left */
        right: auto !important;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #6b7280;
        font-size: 16px;
        z-index: 2;
    }
    /* Input padding to avoid overlapping both icons */

    .password-wrapper .input-field {
        padding-left: 40px; /* space for eye icon */
        padding-right: 40px; /* space for lock icon */
    }
/* -------------------- RESPONSIVE -------------------- */

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .register-card .card-body {
        padding: 20px;
    }

    .form-header h2 {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .input-wrapper i {
        font-size: 14px;
        right: 10px;
    }

    .password-wrapper i.toggle-password {
        left: 10px;
    }

    .input-field {
        padding-right: 38px;
        padding-left: 38px;
    }

    .btn-primary {
        font-size: 0.95rem;
        padding: 10px;
        border-radius: 10px;
    }
}
/* OTP Modal Style */

.otp-modal-content {
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    background: #ffffff;
    padding: 10px 0px !important;
    max-width: 420px;
    margin: 0 auto;
    font-family: 'Tajawal', sans-serif;
}

    .otp-modal-content .modal-header {
        justify-content: center;
        border-bottom: none;
        padding-bottom: 0;
    }

    .otp-modal-content .modal-title {
        font-weight: 700;
        font-size: 1.4rem;
        color: #0b5ed7; /* Bootstrap primary color */
    }

    .otp-modal-content .btn-close {
        position: absolute;
        top: 15px;
        left: 15px; /* RTL: left */
    }

    .otp-modal-content .modal-body {
        padding-top: 10px;
        padding-bottom: 15px;
    }

.otp-info {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
}

.otp-timer {
    font-size: 0.95rem;
    color: #ff4d4f;
    font-weight: 600;
    margin-bottom: 20px;
}

.otp-input-wrapper {
    position: relative;
}

.otp-input {
    font-size: 1.2rem;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #ced4da;
    width: 100%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: border 0.25s, box-shadow 0.25s;
}

    .otp-input:focus {
        outline: none;
        border-color: #0b5ed7;
        box-shadow: 0 0 8px rgba(11,94,215,0.2);
    }

.otp-modal-content .modal-footer {
    flex-direction: column;
    gap: 8px;
}

.otp-modal-content .btn-success {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border-radius: 12px;
    padding: 12px 0;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, filter 0.2s;
}

    .otp-modal-content .btn-success:hover {
        transform: translateY(-2px);
        filter: brightness(0.95);
    }

.otp-resend {
    color: #0b5ed7;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: underline;
    cursor: pointer;
}

    .otp-resend:hover {
        color: #0056b3;
    }
/*update progress */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    display: grid;
    place-items: center;
    z-index: 9999;
    /* This allows the user to scroll/interact with the page behind the loader */
    pointer-events: none;
}

/* The new "Glass" card that holds the content */
.loading-box {
    /*background: rgba(30, 30, 35, 0.7);*/ /* Dark, semi-transparent background */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px); /* The glass effect */

    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 320px;
    padding: 35px;
    /* Center the spinner and text inside the card */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    /* This makes the card itself clickable, while the overlay is not */
    pointer-events: auto;
}

/* The morphing spinner (style remains the same) */
.spinner {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 5px solid;
    border-image-slice: 1;
    border-image-source: conic-gradient( from 90deg, #a855f7, /* Purple */
    #6366f1, /* Indigo */
    #ec4899, /* Pink */
    #a855f7 /* Back to Purple */
    );
    animation: morph-and-spin 2s ease-in-out infinite;
}

@keyframes morph-and-spin {
    0% {
        transform: rotate(0deg);
        border-radius: 50%;
    }

    50% {
        transform: rotate(180deg);
        border-radius: 8px;
    }

    100% {
        transform: rotate(360deg);
        border-radius: 50%;
    }
}

/* Polished text (style remains the same) */
/* -- Style 1: The "Gradient Wave" -- */
.loading-text {
    font-size: 1.2rem;
    font-weight: 600; /* Slightly bolder for better effect */
    /* The Magic: Make the text transparent and apply the gradient as a background */
    color: transparent;
    background-image: linear-gradient( 90deg, #a855f7, /* Start color (Purple) */
    #f1f5f9, /* Middle highlight color (White) */
    #a855f7 /* End color (Purple) */
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    /* The animation that moves the gradient */
    animation: wave-animation 2s linear infinite;
}

@keyframes wave-animation {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}.flatpickr-calendar {
    z-index: 1055 !important; /* higher than Bootstrap modal (default is 1050) */
}

/*end of update progress*/


/*login*/

.login-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 0px 18px;
}

.login-card {
    width: 100%;
    max-width: 800px; /* slightly narrower for better focus */
    min-height: 570px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    animation: fadeInUp 0.7s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: #f8f9fa;
    padding: 1.8rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

    .login-header h3 {
        margin: 0;
        font-weight: bold;
        color: #333;
    }

.login-hint {
    margin: 8px 0 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4facfe;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

/* Input group styling */
.input-group {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    margin-bottom: 10px;
}

    .input-group:focus-within {
        border-color: #4facfe;
        box-shadow: 0 0 8px rgba(79, 172, 254, 0.3);
    }

.input-group-text {
    background: #f9fafb;
    border: none;
    color: #4facfe;
}

/* Error messages */
.error-message-login {
    color: #dc3545 !important;
    font-size: 0.85rem;
    margin-top: -4px;
    margin-bottom: 6px;
    display: block;
}

/* Login button */
.btn-login {
    background: linear-gradient(45deg, #4facfe, #00c6ff);
    color: #fff;
    border-radius: 50px;
    font-weight: bold;
    padding: 12px;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

    .btn-login:before {
        content: "\f2f6";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
    }

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(79, 172, 254, 0.35);
    }

/* Remember me + forgot password */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-check-label {
    font-size: 0.95rem;
    color: #444;
}

.login-options a {
    font-size: 0.9rem;
    color: #4facfe;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .login-options a:hover {
        text-decoration: underline;
    }

/* Login error label */
.login-error {
    display: block;
    max-width: 100%;
    padding: 10px 1px;
    background-color: #ffe5e5;
    color: #a80000;
    border-left: 4px solid #ff4d4f;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .login-error.show {
        opacity: 1;
        transform: translateY(0);
    }

    .login-error.shake {
        animation: shake 0.3s;
    }

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-5px);
    }

    40%, 80% {
        transform: translateX(5px);
    }
}

/* Padding fix */
.pr10 {
    padding-right: 10px !important;
}

.pl10 {
    padding-left: 10px !important;
}

/* Create Account Section */
.create-account p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 6px;
}

.create-account a.btn {
    border-radius: 50px;
    padding: 10px 18px;
    font-weight: bold;
    transition: 0.3s;
}

    .create-account a.btn i {
        font-size: 1.1rem;
    }

/* Individual account button */
.create-account a.btn-outline-primary {
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

    .create-account a.btn-outline-primary:hover {
        background: linear-gradient(45deg, #4facfe, #00c6ff);
        color: #fff;
        border-color: #4facfe;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(79,172,254,0.4);
    }

/* Association account button */
.create-account a.btn-outline-success {
    color: #198754;
    border: 2px solid #198754;
}

    .create-account a.btn-outline-success:hover {
        background: linear-gradient(45deg, #28a745, #198754);
        color: #fff;
        border-color: #198754;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(40,167,69,0.4);
    }

/* Responsive adjustments */
@media(max-width: 576px) {
    .login-card {
        min-height: 520px;
        padding: 0px 0 30px 0px;
    }

    .create-account a {
        width: 100%;
        justify-content: center;
    }
}
/*end of login*/


/*dashboard*/
/* --- Custom Scrollbar for a modern look --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* --- Navigation Bar --- */
.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.profile-pic {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* --- Main Content --- */
.main-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* --- Stat Cards --- */
.stat-card {
    border: none;
    border-radius: 1rem; /* Softer, rounded corners */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* For the background elements */
    position: relative;
}

    .stat-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    }

    .stat-card .card-body {
        position: relative;
        z-index: 2;
    }

.stat-card-icon {
    font-size: 2rem;
    padding: 1.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card .display-4 {
    font-weight: 700;
}

/* -- Card-specific gradients and styles -- */
.card-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-pending {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.card-accepted {
    background: linear-gradient(135deg, #2af598 0%, #009efd 100%);
}

.card-rejected {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

/* --- Requests Table & Tabs --- */
.requests-card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.requests-tabs .nav-link {
    border: none;
    border-radius: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    margin: 0 13px;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

    .requests-tabs .nav-link.active, .requests-tabs .nav-link:hover {
        background-color: #667eea;
        color: #fff;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    }

.table {
    border-collapse: separate;
    border-spacing: 0 10px;
}

    .table thead th {
        border: none;
        color: #888;
        font-weight: 600;
    }

    .table tbody tr {
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        transition: transform 0.2s ease-in-out;
        border-radius: 0.5rem;
        overflow: hidden;
    }

        .table tbody tr:hover {
            transform: scale(1.01);
            z-index: 10;
        }

    .table td, .table th {
        vertical-align: middle;
        border: none;
    }

.tab-content {
    padding-top: 1rem;
}


/* --- Welcome Header --- */
.welcome-header h1 {
    font-weight: 700;
}

.welcome-header .badge {
    font-size: 0.9rem;
    padding: 0.6em 1em;
}

/* --- Quick Actions & Animated Button --- */

.btn-loan {
    background: linear-gradient(135deg, #ffab00 0%, #ffc400 100%);
    border: none;
    color: #432818; /* Dark brown for contrast */
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 5px 15px rgba(255, 171, 0, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
    z-index:99999 !important;
}

    .btn-loan:hover {
        color: #432818;
        transform: translateY(-5px) scale(1.05); /* Combine transforms */
        box-shadow: 0 8px 25px rgba(255, 171, 0, 0.6);
        animation-play-state: paused; /* Pause animation on hover for better UX */
    }

@keyframes pulse {
    0% {
        transform: scale(0.98);
        box-shadow: 0 5px 15px rgba(255, 171, 0, 0.4);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(255, 171, 0, 0.7);
    }

    100% {
        transform: scale(0.98);
        box-shadow: 0 5px 15px rgba(255, 171, 0, 0.4);
    }
}

.floating-card {
    max-width: 1500px;
    margin: 5px auto; /* centers the card horizontally */
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
    position: relative;
    top: -20px; /* slightly floats above content */
    padding: 30px 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .floating-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    }

.sticky-top {
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}


.dashboard-card {
    position: relative;
    background: linear-gradient(145deg, #fff, #f8f9fa);
    border-radius: 25px;
    padding: 25px 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

    .dashboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    }

    /* Decorative waves / blobs (5 total now: 2 pseudo + 3 HTML elements) */
    .dashboard-card::before {
        content: "";
        position: absolute;
        width: 140px;
        height: 140px;
        background: #cce0ff33;
        border-radius: 50%;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
    }

    .dashboard-card::after {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        background: #fcd5ce33;
        border-radius: 50%;
        bottom: -50px;
        left: 15%;
        z-index:-1;
    }

    .dashboard-card .wave1 {
        content: "";
        position: absolute;
        width: 100px;
        height: 100px;
        background: #d1ffd633;
        border-radius: 50%;
        top: 10%;
        left: 10%;
    }

    .dashboard-card .wave2 {
        content: "";
        position: absolute;
        width: 120px;
        height: 120px;
        background: #ffe6d633;
        border-radius: 50%;
        top: 35%;
        right: 5%;
    }

    .dashboard-card .wave3 {
        content: "";
        position: absolute;
        width: 90px;
        height: 90px;
        background: #c0f0ff33;
        border-radius: 50%;
        bottom: 20%;
        right: 25%;
    }

    .dashboard-card .wave4 {
        content: "";
        position: absolute;
        width: 110px;
        height: 110px;
        background: #ffd6f633;
        border-radius: 50%;
        top: 60%;
        left: 20%;
    }

    .dashboard-card .wave5 {
        content: "";
        position: absolute;
        width: 80px;
        height: 80px;
        background: #d0ffd633;
        border-radius: 50%;
        bottom: 10%;
        right: 10%;
    }

/* Card icon */
.card-icon {
    width: 80px;
    height: 80px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    color: #4facfe;
    transition: transform 0.3s ease, background 0.3s ease;
}

    .card-icon:hover {
        transform: scale(1.1);
        background: #d0e8ff;
    }

/* Titles and text */
.dashboard-card h4 {
    color: #495057;
    font-size: 1.3rem;
}

.dashboard-card p {
    font-size: 1rem;
}

/* Button style */
.dashboard-card .btn-outline-primary {
    border: 2px solid #4facfe;
    color: #4facfe;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .dashboard-card .btn-outline-primary:hover {
        background: linear-gradient(45deg, #4facfe, #00c6ff);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(79, 172, 254, 0.5);
    }

/* Responsive adjustments */
@media(max-width: 576px) {
    .dashboard-card {
        padding: 30px 20px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .dashboard-card h4 {
        font-size: 1.1rem;
    }

    .dashboard-card p.display-5 {
        font-size: 2rem;
    }

    .dashboard-card .btn-lg {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}


/*end of dashboard*/



/*no data card*/
.no-data-card {
    background: linear-gradient(145deg, #fff, #f1f5f9);
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .no-data-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    }

.icon-wrapper {
    width: 90px;
    height: 90px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    color: #ffc107; /* eye-catching yellow */
    transition: transform 0.3s ease, background 0.3s ease;
}

    .icon-wrapper:hover {
        transform: scale(1.1);
        background: #ffe8a1;
    }

.no-data-card h4 {
    color: #495057;
    font-size: 1.4rem;
}

.no-data-card p {
    font-size: 0.95rem;
}

.no-data-card .btn-primary {
    background: linear-gradient(45deg, #4facfe, #00c6ff);
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .no-data-card .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(79, 172, 254, 0.5);
    }

/* Responsive adjustments */
@media(max-width: 576px) {
    .no-data-card {
        padding: 30px 20px;
    }

    .icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .no-data-card h4 {
        font-size: 1.2rem;
    }

    .no-data-card .btn-lg {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/*no data card*/

/*terms and conditions*/

/* Custom scrollbar for the terms container */
.terms-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 #f0f0f0;
}

    .terms-scroll::-webkit-scrollbar {
        width: 8px;
        background-color: #f0f0f0;
    }

    .terms-scroll::-webkit-scrollbar-thumb {
        background-color: #adb5bd;
        border-radius: 4px;
    }

        .terms-scroll::-webkit-scrollbar-thumb:hover {
            background-color: #6c757d;
        }

/* Custom style for the acceptance button */
.accept-btn {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
}

    .accept-btn:not(:disabled):hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(40, 167, 69, 0.6);
    }

    .accept-btn:disabled {
        background-color: #dee2e6 !important;
        border-color: #dee2e6 !important;
        cursor: not-allowed;
        box-shadow: none;
    }

/* Custom Toast/Snackbar for a trendy success message */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
}

.custom-toast {
    background-color: #28a745 !important;
    color: #fff !important;
    border: none !important;
}
/*end of terms and conditions*/


/* =================================================================== */
/* 4. Custom File Uploader                                             */
/* =================================================================== */

.custom-file-upload-wrapper {
    position: relative;
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .custom-file-upload-wrapper:hover {
        background-color: #e9ecef;
        border-color: #0056b3;
    }

.upload-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

    .upload-area > div,
    .upload-area input[type="file"] {
        opacity: 0;
        width: 100% !important;
        height: 120px !important;
        cursor: pointer;
    }

.upload-content {
    color: #007bff;
    pointer-events: none;
}

    .upload-content i {
        font-size: 2.5em;
        display: block;
        margin-bottom: 10px;
    }

    .upload-content span {
        font-weight: 500;
    }

.upload-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 15;
    display: none;
}

.upload-status {
    margin-top: 10px;
    font-weight: bold;
    font-size: 0.9em;
    display: none;
    z-index: 5;
}

    .upload-status.success {
        color: #28a745;
    }

    .upload-status.error {
        color: #dc3545;
    }

.file-list {
    margin-top: 10px;
    font-size: 0.85em;
    text-align: right;
    width: 100%;
    z-index: 5;
}

.file-list-item {
    background-color: #e9f5ff;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 5px;
    direction: rtl;
}

    .file-list-item i {
        color: #28a745;
        margin-left: 8px;
    }

/* Keyframe for spinner animation */
@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Status message styles */
.upload-status {
    margin-top: 10px;
    font-weight: bold;
    font-size: 0.9em;
    display: none; /* Hidden by default */
    z-index: 5;
}

    .upload-status.success {
        color: #28a745; /* Green */
    }

    .upload-status.error {
        color: #dc3545; /* Red */
    }

/* List of uploaded files */
.file-list {
    margin-top: 10px;
    font-size: 0.85em;
    text-align: right;
    width: 100%;
    z-index: 5;
}

.file-list-item {
    background-color: #e9f5ff;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 5px;
    direction: rtl; /* Ensure right-to-left display */
}

    .file-list-item i {
        color: #28a745;
        margin-left: 8px;
    }

.file-preview-list {
    margin-top: 15px;
    width: 100%;
    z-index: 5;
}

.file-preview-item {
    display: flex;
    align-items: center;
    background-color: #e9f5ff;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    direction: rtl;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.file-preview-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    flex-shrink: 0;
}

    .file-preview-thumbnail i {
        font-size: 24px;
        color: #555;
    }

.file-preview-info {
    flex-grow: 1;
    text-align: right;
    font-size: 0.9em;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-delete {
    margin-right: 15px;
    font-size: 1.1em;
    color: #dc3545;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

    .file-preview-delete:hover {
        color: #a71d2a;
        transform: scale(1.2);
    }
/*file uploader*/

/* sticky header */
.sticky-form-header {
    position: sticky;
    top: 79px; /* adjust to match the height of your sticky menu */
    z-index: 1020; /* just below the menu or higher if needed */
}
@media (max-width: 768px) {
    .sticky-form-header {
        top: 72px;
    }
}
/*end of sticky header*/

/*headline*/
/* Style 2: Elegant Underline */
.form-section-title {
    color: var(--text-color-dark);
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative; /* Required for the pseudo-element */
    padding-bottom: 12px; /* Space for the line */
}

    .form-section-title::after {
        content: ''; /* Required for pseudo-elements */
        position: absolute;
        bottom: 0;
        right: 0; /* Aligns the line to the right for RTL */
        width: 100px; /* Width of the line */
        height: 4px; /* Thickness of the line */
        background-color: var(--primary-1);
        border-radius: 2px;
    }
/*headline*/

/*otp card for activation page*/

.activation-panel {
    font-family: 'Tajawal', sans-serif;
    background: rgba(255, 255, 255, 0.65); /* Semi-transparent white for glass effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle border to define the glass */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Softer shadow for a light theme */
    padding: 40px 35px;
    width: 100%;
    max-width: 460px;
    text-align: center;
    color: #4a5568; /* Dark grey for text */
}

.panel-header .panel-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    color: #1f3b73;
}

.panel-header .panel-title {
    margin-top: 0;
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
}
/* Even darker for title */
.panel-header .panel-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.panel-header .user-email {
    font-weight: 500;
    color: #3b82f6;
    direction: ltr;
    display: inline-block;
}

.otp-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 35px 0;
    direction: ltr;
}

.code-input {
    width: 52px;
    height: 62px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: rgba(248, 250, 252, 0.8);
    color: #1f3b73;
    transition: all 0.25s ease;
}

    .code-input:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        transform: scale(1.05);
    }

    .code-input::-webkit-outer-spin-button, .code-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .code-input[type=number] {
        -moz-appearance: textfield;
    }

.timer-info {
    margin: 20px 0;
    font-size: 1rem;
}

#countdown-timer {
    font-weight: 500;
    color: #64748b;
}

.resend-link-style {
    color: #3b82f6 !important;
    text-decoration: none !important;
    font-weight: 500;
}

    .resend-link-style:hover {
        color: #2563eb !important;
        text-decoration: underline !important;
    }

.submit-button {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
    padding: 16px;
    width: 100%;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

    .submit-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 25px rgba(59, 130, 246, 0.3);
    }
.panel-header .panel-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    color: #a855f7;
}

.panel-header .panel-title {
    margin-top: 0;
    font-size: 26px;
    font-weight: 700;
    color: #1f3b73;
}

.panel-header .panel-subtitle {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 20px;
    line-height: 1.6;
}

.panel-header .user-email {
    font-weight: 500;
    color: #1f3b73;
    direction: ltr;
    display: inline-block;
}

.otp-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 35px 0;
    direction: ltr;
}

.code-input {
    width: 52px;
    height: 62px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border-radius: 12px;
    border: 1px solid #1f3b73;
    /*background: rgba(0, 0, 0, 0.2);*/
    color: #1f3b73;
    transition: all 0.25s ease;
}

    .code-input:focus {
        outline: none;
        border-color: #a855f7;
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
        transform: scale(1.05);
    }

    .code-input::-webkit-outer-spin-button, .code-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .code-input[type=number] {
        -moz-appearance: textfield;
    }

.timer-info {
    margin: 20px 0;
    font-size: 1rem;
}

#countdown-timer {
    font-weight: 500;
    color: #1f3b73;
}

.resend-link-style {
    color: #818cf8 !important;
    text-decoration: none !important;
    font-weight: 500;
}

    .resend-link-style:hover {
        color: #a78bfa !important;
        text-decoration: underline !important;
    }

.submit-button {
    background: linear-gradient(90deg, #8e2de2, #4a00e0);
    color: #ffffff;
    border: none;
    padding: 16px;
    width: 100%;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

    .submit-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 25px rgba(74, 0, 224, 0.4);
    }

/*otp card for activation page*/

/*forget pass and change pass*/
/* Aligns the input text and placeholder to the right */
.input-field {
    text-align: right;
}

    /* Optional: Specifically styles the placeholder text itself */
    .input-field::placeholder {
        color: #999; /* A slightly lighter color for the placeholder */
        opacity: 1; /* Ensures the placeholder is fully visible */
    }
.mx-w-475{
    max-width:475px !important;
}

.form-card {
    max-width: 475px;
}

/*forget pass*/

/*nav styling*/
/* Import a clean Arabic font like 'Cairo' from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600&display=swap');

.main-nav {
    font-family: 'Cairo', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    /*background-color: #f8f9fa;*/ /* Light background for the nav area */
    border-radius: 12px;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);*/
    direction: rtl;
}

    .main-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 10px;
    }

        .main-nav ul li a {
            display: flex;
            align-items: center;
            padding: 12px 24px;
            text-decoration: none;
            color: #555; /* Softer text color for inactive items */
            font-size: 16px;
            font-weight: 600;
            border-radius: 50px; /* Fully rounded corners for the pill shape */
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

            /* The hover and active state */
            .main-nav ul li a:hover,
            .main-nav ul li a.active { /* Add a class 'active' to the current page link */
                background-color: #0056b3;
                color: #ffffff;
                box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
                transform: translateY(-2px);
            }

            .main-nav ul li a i {
                margin-left: 10px;
                font-size: 18px;
                transition: transform 0.3s ease;
            }

            /* The hover AND active state */
            .main-nav ul li a:hover,
            .main-nav ul li a.active { /* This targets the link with the 'active' class */
                background-color: #0056b3;
                color: #ffffff;
                box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
                transform: translateY(-2px);
            }
/*nav styling*/


/* =================================================================== */
/* 5. Terms & Conditions Page Layout                                 */
/* =================================================================== */

/* --- Main container for the page content --- */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Provides spacing on smaller screens */
}

/* --- Flexbox layout for the two columns --- */
.terms-layout {
    display: flex;
    flex-direction: column; /* Stacks columns on mobile by default */
    gap: 30px;
}

/* --- Table of Contents Sidebar (visible on desktop) --- */
.toc-sidebar {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 14px; /* Matches your .register-card radius */
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.08);
    height: fit-content; /* Ensures it only takes up needed space */
    display: none; /* Hidden on mobile */
}

    .toc-sidebar h3 {
        margin-top: 0;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-color-dark);
        border-bottom: 2px solid #e6e9ef;
        padding-bottom: 12px;
        margin-bottom: 15px;
    }

    .toc-sidebar ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .toc-sidebar ul li a {
            display: block;
            padding: 9px 0;
            text-decoration: none;
            color: #555;
            font-weight: 600;
            font-size: 0.95rem;
            transition: color 0.2s ease, transform 0.2s ease;
            border-bottom: 1px solid #f0f2f5;
        }

        .toc-sidebar ul li:last-child a {
            border-bottom: none;
        }

        .toc-sidebar ul li a:hover {
            color: var(--primary-1);
            transform: translateX(-5px);
        }

/* --- Main Content Area for the Terms --- */
.terms-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.08);
}

    .terms-content h1 {
        font-size: 2rem;
        font-weight: 700;
        color: var(--text-color-dark);
        margin-top: 0;
        margin-bottom: 5px;
    }

    .terms-content .last-updated {
        display: block;
        color: #6b7280;
        margin-bottom: 40px;
        font-size: 0.9rem;
    }

    .terms-content .section {
        margin-bottom: 35px;
        scroll-margin-top: 100px; /* Offset for sticky header when jumping to section */
    }

    .terms-content h2 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-1);
        border-bottom: 2px solid #e6e9ef;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .terms-content p {
        font-size: 1.05rem;
        color: #444;
        line-height: 1.8;
    }


/* =================================================================== */
/* 6. Responsive Adjustments for Terms Page                          */
/* =================================================================== */

@media (min-width: 992px) {
    .terms-layout {
        flex-direction: row; /* Side-by-side on desktop */
        align-items: flex-start;
    }

    .toc-sidebar {
        flex: 0 0 280px; /* Fixed width for sidebar */
        position: sticky;
        top: 100px; /* Adjust based on your sticky navbar's height */
        display: block; /* Show the sidebar on desktop */
    }

    .terms-content {
        flex: 1; /* Main content takes remaining space */
    }
}



/* =================================================================== */
/* 7. Enhanced Footer Widget                                         */
/* =================================================================== */

.footer-widget .widget-title {
    color: #ffffff; /* White title for contrast on dark footer */
    font-weight: 700;
    font-size: 1.2rem;
    padding-bottom: 12px;
    margin-bottom: 15px;
    position: relative;
}

    /* Creates the elegant underline effect */
    .footer-widget .widget-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0; /* Aligns to the right for RTL */
        width: 50px;
        height: 3px;
        background-color: var(--primary-2); /* Uses your bright blue variable */
        border-radius: 2px;
    }

/* Overriding and enhancing your existing .footer-links */
.footer-widget .footer-links li {
    /* Clean separator line between links */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

    .footer-widget .footer-links li:last-child {
        border-bottom: none; /* Removes line from the last item */
    }

.footer-widget .footer-links a {
    display: flex;
    align-items: center;
    padding: 12px 5px; /* Generous padding for easy clicking */
    color: #dcdcdc; /* Keeps your original link color */
    text-decoration: none;
    transition: all 0.3s ease;
}

    /* The hover effect */
    .footer-widget .footer-links a:hover {
        color: #ffffff; /* Brightens the link text on hover */
        background-color: rgba(255, 255, 255, 0.05); /* Subtle background highlight */
        transform: translateX(-5px); /* Slight shift for a dynamic feel */
    }

    /* Icon styling */
    .footer-widget .footer-links a i {
        color: var(--primary-2); /* Icon color matches the title underline */
        font-size: 16px;
        width: 25px; /* Ensures all text is perfectly aligned */
        margin-left: 10px; /* Space between icon and text */
    }
/* =================================================================== */
/* 8. Footer Contact Info List                                       */
/* =================================================================== */

.contact-info-list li {
    padding: 6px 0; /* A little less vertical space than the links list */
}

    /* Common style for both links (a) and non-links (span) */
    .contact-info-list a,
    .contact-info-list li > span {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #dcdcdc; /* Your default footer text color */
        transition: color 0.3s ease;
    }

        /* Hover effect only for the actual links */
        .contact-info-list a:hover {
            color: #ffffff; /* Brighter text on hover */
        }

/* Icon styling to match the other widget */
.contact-info-list i {
    color: var(--primary-2); /* Uses your bright blue variable */
    font-size: 16px;
    width: 25px; /* Ensures all text is perfectly aligned */
    margin-left: 10px; /* Space between icon and text */
}

/* =================================================================== */
/* 9. Enhanced Footer Bottom                                         */
/* =================================================================== */

.footer-bottom {
    background-color: #162c58; /* A slightly darker shade than your main footer */
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Clean separator line */
}

.copyright-text {
    color: #adb5bd; /* A soft, light gray for readability */
    font-size: 0.9rem;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 12px; /* Space between icons */
}

    .footer-socials a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.08); /* Subtle, dark background */
        border-radius: 50%; /* Makes the icon container a perfect circle */
        color: #ffffff;
        font-size: 16px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        /* The dynamic hover effect */
        .footer-socials a:hover {
            background-color: var(--primary-2); /* Uses your bright blue variable */
            color: #ffffff;
            transform: translateY(-4px); /* Lifts the icon up */
            box-shadow: 0 8px 15px rgba(0, 180, 216, 0.2);
        }

/* =================================================================== */
/* 10. Enhanced Top Bar                                              */
/* =================================================================== */

/* Main style for the top bar itself */
.top-bar {
    background: var(--primary-1); /* Your primary dark blue */
    /* Alternative: A modern gradient */
    /* background: linear-gradient(to left, var(--primary-1), var(--primary-2)); */
    padding: 8px 0;
    font-size: 0.9rem;
    z-index: 1031; /* Ensures it's above content but below modals */
}

    /* Styling for all links and text within the top bar */
    .top-bar a,
    .top-bar span {
        color: #e9ecef; /* A light, soft white for readability */
        text-decoration: none;
        transition: color 0.3s ease;
        display: inline-flex;
        align-items: center;
    }

        .top-bar a:hover {
            color: var(--primary-2); /* Your bright accent blue on hover */
        }

    /* Styling for the icons */
    .top-bar i {
        margin-left: 6px; /* Space between icon and text (RTL) */
        font-size: 15px;
        color: var(--primary-2); /* Icons have the accent color by default */
    }

/* Contact details specific layout */
.contact-details {
    gap: 15px; /* Space between the phone and email sections */
}

/* The vertical separator line */
.separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    margin: 0 5px;
}

/* Social links specific layout */
.social-links {
    display: flex;
    gap: 18px; /* Space between social icons */
}

    .social-links a {
        font-size: 16px;
    }

/* =================================================================== */
/* 11. Top Bar Social Icon Color Override                            */
/* =================================================================== */

.top-bar .social-links a i {
    color: #ffffff; /* Makes the icons pure white */
    transition: color 0.3s ease, transform 0.3s ease;
}

.top-bar .social-links a:hover i {
    color: var(--primary-2); /* Changes color to your accent blue on hover */
    transform: scale(1.1); /* Slightly enlarges the icon on hover */
}

/* Hides the top bar on smaller screens to save space */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

/*tabs container*/

/* Container to enable horizontal scrolling on mobile */
.tabs-container {
    overflow-x: auto;
    white-space: nowrap;
    /* Hide scrollbar for a cleaner look */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

    .tabs-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, and Opera */
    }

/* Custom styles for the enhanced tabs */
.requests-tabs-enhanced {
    border-bottom: 2px solid #e9ecef; /* Light grey bottom line for the whole bar */
    flex-wrap: nowrap; /* Prevent tabs from wrapping on mobile */
}

    .requests-tabs-enhanced .nav-item {
        margin-bottom: -2px; /* Pull the tabs down to align with the bottom border */
    }

    .requests-tabs-enhanced .nav-link {
        border: none;
        border-bottom: 2px solid transparent; /* Transparent border for all inactive tabs */
        color: #6c757d; /* Muted text color for inactive tabs */
        font-weight: 600;
        padding: 0.75rem 1.25rem;
        transition: all 0.2s ease-in-out;
        display: flex;
        align-items: center;
    }

        /* Hover effect for inactive tabs */
        .requests-tabs-enhanced .nav-link:not(.active):hover {
            color: #000;
            background-color: #f8f9fa; /* Light background on hover */
        }

        /* Style for the ACTIVE tab */
        .requests-tabs-enhanced .nav-link.active {
            border-bottom: 2px solid #0d6efd; /* Prominent blue line for the active tab */
            color: #0d6efd;
            background-color: transparent;
        }

        /* Style for the counter badges inside the tabs */
        .requests-tabs-enhanced .nav-link .badge {
            font-size: 0.8em;
            padding: 0.4em 0.7em;
        }

/*tabs container*/


/* =================================================================== */
/* 2. Visual Workflow Tracker (in Modal)
/* =================================================================== */
.workflow-tracker {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
}
    /* The grey line that runs behind the steps */
    .workflow-tracker::before {
        content: '';
        position: absolute;
        top: 25px; /* Center vertically on the icon */
        left: 10%;
        right: 10%;
        height: 4px;
        background-color: #e9ecef;
        z-index: 1;
    }

.workflow-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 120px;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    border: 4px solid #e9ecef;
    background-color: #fff;
    color: #adb5bd; /* Default pending color */
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.step-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #6c757d; /* Default pending color */
}

/* Status: Completed */
.workflow-step.completed .step-icon {
    background-color: #198754; /* Green */
    border-color: #198754;
    color: #fff;
}

.workflow-step.completed .step-name {
    color: #198754;
}

/* Status: In Progress */
.workflow-step.inprogress .step-icon {
    background-color: #0d6efd; /* Blue */
    border-color: #0d6efd;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(13, 110, 253, 0.2);
}

.workflow-step.inprogress .step-name {
    color: #0d6efd;
    font-weight: bold;
}

/* =================================================================== */
/* 3. Notification Bell Badge
/* =================================================================== */
/* This ensures the red counter badge is positioned correctly on the bell icon */
.navbar-nav .nav-item .nav-link {
    position: relative;
}

    .navbar-nav .nav-item .nav-link .badge {
        position: absolute;
        top: 0.6rem;
        right: 0.2rem;
        font-size: 0.6em;
        padding: 0.3em 0.5em;
    }
/* Style for unread notification items */
.dropdown-item.unread {
    background-color: #f0f4ff; /* A light blue background for unread items */
    font-weight: bold;
}

    .dropdown-item.unread:hover {
        background-color: #e6edff;
    }

/* Style for the blue dot on unread items */
.dropdown-item .fa-circle {
    font-size: 0.5rem;
    vertical-align: middle;
}

/*Error*/
.error-container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.error-icon {
    font-size: 6rem;
    color: #dc3545; /* Bootstrap Danger Red */
    margin-bottom: 1rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-10%);
        animation-timing-function: cubic-bezier(0.8,0,1,1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0,0,0.2,1);
    }
}

.error-title {
    font-weight: 800;
    font-size: 2.5rem;
    color: #343a40;
}

.error-message {
    font-size: 1.2rem;
    color: #6c757d;
}

.btn-custom {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}
/*Error*/


/*requester action in dashboard*/

/* Container fade-in animation */
.action-panel {
    animation: fadeInUp 0.6s ease-in-out;
}

/* Each request card hover effect */
.action-item {
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    border: 1px solid #eee;
    transition: all 0.25s ease-in-out;
}

    .action-item:hover {
        transform: translateY(-3px);
        background: linear-gradient(135deg, #fefefe, #f0f4ff);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    }

        /* Arrow subtle animation */
        .action-item:hover .arrow-icon {
            transform: translateX(6px);
        }

/* Pulse for the warning icon */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*requester action in dashboard*/

/*captcha*/
.lbl-captcha {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    letter-spacing: 3px;
    background-color: #f7f7f7;
    padding: 6px 12px;
    border: 1px solid #ccc;
    display: inline-block;
    border-radius: 4px;
    user-select: none;
}

/*captcha*/

