@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --primary-color: #4361ee;
    --primary-hover: #3a0ca3;
    --secondary-color: #f8f9fa;
    --success-color: #2ec4b6;
    --dark-color: #2b2d42;
    --text-muted: #8d99ae;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-color);
    color: var(--dark-color);
    -webkit-font-smoothing: antialiased;
}

/* Navbar Premium Styling */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-custom .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* Premium Card Design */
.premium-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.15);
}

/* Add a subtle gradient line at the bottom of the card on hover */
.premium-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.premium-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Icon Containers */
.icon-container {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.icon-success {
    background: linear-gradient(135deg, #2ec4b6, #20a498);
    color: white;
}

.icon-primary {
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    color: white;
}

.icon-secondary {
    background: linear-gradient(135deg, #8d99ae, #7a869a);
    color: white;
}

/* Hero Section */
.hero-title {
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -1px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-weight: 500;
}

/* Form Styling */
.form-control-custom {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: #fdfdfd;
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
    background-color: #ffffff;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    transition: all 0.3s ease;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    color: white;
}

/* Reusable Components */
.hero-card {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.action-card {
    min-height: 140px;
}

.section-card {
    /* Semantic wrapper */
}

.primary-cta {
    /* Semantic wrapper for the primary call to action */
}

/* Select2 Custom Integration */
.select2-container--bootstrap-5 .select2-selection {
    border-radius: 12px !important;
    border: 1px solid #e0e0e0 !important;
    padding: 0.5rem 1.2rem !important;
    min-height: 58px !important; /* Matches py-3 approx */
    background-color: #fdfdfd !important;
    display: flex;
    align-items: center;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1) !important;
    background-color: #ffffff !important;
}

.select2-container--bootstrap-5 .select2-selection__rendered {
    color: var(--dark-color) !important;
    font-size: 1.25rem !important; /* Matches fs-5 */
    padding: 0 !important;
}

.select2-container--bootstrap-5 .select2-selection__arrow {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

/* Prevent iOS auto-zoom by forcing font-size to 16px on mobile inputs */
.select2-search__field {
    font-size: 16px !important;
}
