/* 
* Custom CSS for Alwafi Pharmacy Recruitment Platform
* RTL Support for Arabic Language
*/

:root {
    --primary-gradient: linear-gradient(135deg, #388E3C, #0288D1);
    --secondary-gradient: linear-gradient(135deg, #66BB6A, #29B6F6);
    --primary-color: #388E3C;
    --secondary-color: #0288D1;
    --light-color: #E8F5E9;
    --dark-color: #1B5E20;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
}

/* Global Styles */
body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-800);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

a:hover {
    color: var(--primary-color);
}

/* Gradient Button Styles */
.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-gradient:hover, .btn-gradient:focus {
    opacity: 0.9;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-gradient-secondary {
    background: var(--secondary-gradient);
    border: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-gradient-secondary:hover, .btn-gradient-secondary:focus {
    opacity: 0.9;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Navbar customization */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
}

.navbar-brand img {
    max-height: 50px;
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
}

.navbar .nav-link:hover, .navbar .nav-link:focus {
    color: var(--primary-color);
}

.navbar .active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero banner */
.hero-banner {
    padding: 6rem 0;
    background: var(--primary-gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Cards and Boxes */
.card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: var(--secondary-gradient);
    color: var(--white);
    font-weight: 600;
    border: none;
}

.job-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.job-card .card-body {
    flex: 1;
}

/* Form styling */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(2, 136, 209, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Admin Dashboard */
.dashboard-stats .card {
    border-radius: 10px;
    border-right: 4px solid;
}

.dashboard-stats .card-green {
    border-right-color: var(--primary-color);
}

.dashboard-stats .card-blue {
    border-right-color: var(--secondary-color);
}

.dashboard-stats .card-warning {
    border-right-color: #FFC107;
}

.dashboard-stats .card-danger {
    border-right-color: #DC3545;
}

.dashboard-stats .stat-icon {
    font-size: 2.5rem;
    opacity: 0.2;
    position: absolute;
    bottom: 1rem;
    left: 1rem;
}

/* Status badges */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 50rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background-color: #FFF3CD;
    color: #856404;
}

.status-reviewed {
    background-color: #CCE5FF;
    color: #004085;
}

.status-rejected {
    background-color: #F8D7DA;
    color: #721C24;
}

.status-accepted {
    background-color: #D4EDDA;
    color: #155724;
}

/* Gallery */
.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Map container */
.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin: 30px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
    background-color: var(--gray-100);
    color: var(--gray-700);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer a {
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-gradient);
    color: var(--white);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-banner {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 3rem 0;
    }
    
    .gallery-item img {
        height: 160px;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.95rem;
    }
    
    .hero-banner {
        padding: 2rem 0;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .gallery-item img {
        height: 140px;
    }
    
    .map-container {
        height: 250px;
    }
}


.branch-btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.branch-btn {
    transition: all 0.3s ease;
    min-width: 120px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

         /* General Styling */
        body {
            font-family: 'Cairo', sans-serif;
            background: #f4f7fa;
        }

        /* Sidebar */
        .sidebar {
            position: fixed;
            top: 0;
            bottom: 0;
            right: 0;
            z-index: 100;
            width: 250px;
            background: linear-gradient(180deg, #ffffff, #e8f5e9);
            box-shadow: -3px 0 10px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .sidebar-sticky {
            position: sticky;
            top: 0;
            height: 100vh;
            padding-top: 1.5rem;
            overflow-y: auto;
        }

        .sidebar-logo {
            text-align: center;
            margin-bottom: 1.5rem;
            position: relative;
        }

        .sidebar-logo img {
            width: 100px;
            transition: transform 0.3s ease;
            border-radius: 10px;
            border: 2px solid #4caf50;
        }

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

        .sidebar-logo .badge {
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            background: #4caf50;
            color: #fff;
            font-size: 0.75rem;
            padding: 5px 10px;
            border-radius: 20px;
        }

        .sidebar .nav-link {
            color: #2e7d32;
            font-weight: 600;
            padding: 0.75rem 1.5rem;
            margin: 0.2rem 0.5rem;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .sidebar .nav-link:hover {
            background: rgba(76, 175, 80, 0.1);
            color: #1b5e20;
        }

        .sidebar .nav-link.active {
            background: linear-gradient(135deg, #4caf50, #0288d1);
            color: #fff;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .sidebar .nav-link i {
            margin-left: 0.75rem;
        }

        /* Main Content */
        .main-content {
            margin-right: 250px;
            padding: 2rem;
        }

        @media (max-width: 767.98px) {
            .sidebar {
                position: static;
                width: 100%;
                height: auto;
            }

            .main-content {
                margin-right: 0;
                padding: 1rem;
            }

            .sidebar-sticky {
                height: auto;
            }
        }

        /* Stat Cards */
        .dashboard-stats .card {
            border-radius: 12px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
        }

        .dashboard-stats .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .card-green {
            background: linear-gradient(135deg, #4caf50, #81c784);
            color: #fff;
        }

        .card-blue {
            background: linear-gradient(135deg, #0288d1, #4fc3f7);
            color: #fff;
        }

        .card-warning {
            background: linear-gradient(135deg, #ffb300, #ffca28);
            color: #fff;
        }

        .card-success {
            background: linear-gradient(135deg, #388e3c, #66bb6a);
            color: #fff;
        }

        .stat-icon {
            position: absolute;
            top: 20px;
            left: 20px;
            font-size: 2.5rem;
            opacity: 0.2;
        }

        .card-body h5 {
            font-size: 1.1rem;
            font-weight: 600;
        }

        .card-body h2 {
            font-size: 2.5rem;
            margin: 0.5rem 0;
        }

        /* Table Styling */
        .table-card {
            border-radius: 12px;
            overflow: hidden;
        }

        .dataTable thead th {
            background: #e8f5e9;
            color: #2e7d32;
            font-weight: 600;
        }

        .status-badge {
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.85rem;
        }

        .status-pending { background: #fff3e0; color: #f57c00; }
        .status-reviewed { background: #e3f2fd; color: #0288d1; }
        .status-rejected { background: #ffebee; color: #d32f2f; }
        .status-accepted { background: #e8f5e9; color: #2e7d32; }

        /* Buttons */
        .btn-gradient {
            background: linear-gradient(135deg, #4caf50, #0288d1);
            color: #fff;
            border: none;
            transition: all 0.3s ease;
        }

        .btn-gradient:hover {
            background: linear-gradient(135deg, #388e3c, #01579b);
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        }

        .btn-outline-primary {
            border-color: #4caf50;
            color: #4caf50;
            transition: all 0.3s ease;
        }

        .btn-outline-primary:hover {
            background: #4caf50;
            color: #fff;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        }

        .btn-sm i {
            font-size: 0.9rem;
        }
 