/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Cairo', sans-serif;
    color: #1f2937;
}

body[dir="rtl"] {
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* Navigation Links */
.nav-link {
    padding: 10px 18px;
    color: #4b5563;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #1e3a5f;
    background: #f3f4f6;
}

.nav-link.active {
    color: #1e3a5f;
    background: #f3f4f6;
}

/* News Ticker Animation */
@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-ticker {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-wrapper {
    position: relative;
}

.ticker-content {
    display: inline-flex;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
}

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

/* Hero Section RTL Support */
body[dir="rtl"] .hero-section .fa-arrow-right {
    transform: rotate(180deg);
}

/* Footer RTL Support */
body[dir="rtl"] .footer-contact i {
    margin-left: 8px;
    margin-right: 0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .news-ticker {
        display: none;
    }
    
    .hero-section h2 {
        font-size: 2.5rem !important;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f2744;
}

/* Button Hover Effects */
.btn-primary {
    background: #8B0000;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #6d0000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.2);
}

/* Card Shadows */
.card-shadow {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #c4a052;
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Stats Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    animation: countUp 0.6s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

/* Hero Image Overlay */
.hero-overlay {
    background: linear-gradient(90deg, rgba(241, 245, 249, 1) 0%, rgba(241, 245, 249, 0.8) 30%, rgba(241, 245, 249, 0) 60%);
}

/* Service Card Icon Transition */
.service-card .icon-wrapper {
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1);
}

/* Language Dropdown */
#langMenu {
    min-width: 140px;
}

#langMenu button {
    transition: background 0.2s ease;
}

/* Mobile Menu Transition */
#mobileMenu {
    transition: all 0.3s ease;
}

/* Top Bar Gradient */
.top-bar-gradient {
    background: linear-gradient(90deg, #1e3a5f 0%, #0f2744 100%);
}

/* Footer Gradient */
.footer-gradient {
    background: linear-gradient(180deg, #0f2744 0%, #0a1929 100%);
}

/* Social Icon Hover */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Print Styles */
@media print {
    .top-bar,
    header,
    footer,
    .news-ticker {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
}

/* ========================================
   MODAL STYLES
======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 39, 68, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-overlay.hidden {
    display: none;
}

.modal-container {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

body[dir="rtl"] .modal-close {
    right: auto;
    left: 20px;
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
}

/* ========================================
   FORM STYLES
======================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    transition: color 0.2s ease;
    pointer-events: none;
}

body[dir="rtl"] .input-icon {
    left: auto;
    right: 16px;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f9fafb;
}

body[dir="rtl"] .input-wrapper input {
    padding: 14px 48px 14px 16px;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #1e3a5f;
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.input-wrapper.focused .input-icon {
    color: #1e3a5f;
}

.input-wrapper.error input {
    border-color: #ef4444;
    background: #fef2f2;
}

.input-wrapper.error .input-icon {
    color: #ef4444;
}

.input-wrapper input::placeholder {
    color: #9ca3af;
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

body[dir="rtl"] .password-toggle {
    right: auto;
    left: 16px;
}

.password-toggle:hover {
    color: #1e3a5f;
}

/* Password Strength */
.password-strength {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Error Message */
.error-message {
    font-size: 0.75rem;
    color: #ef4444;
    min-height: 18px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Checkbox Styles */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.875rem;
}

.checkbox-wrapper.small {
    font-size: 0.8125rem;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: #1e3a5f;
    border-color: #1e3a5f;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    color: #4b5563;
    line-height: 1.5;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #8B0000 0%, #1e3a5f 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-submit.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

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

/* ========================================
   TOAST NOTIFICATION
======================================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2000;
}

.toast.show {
    transform: translateX(0);
}

body[dir="rtl"] .toast {
    right: auto;
    left: 30px;
    transform: translateX(-150%);
}

body[dir="rtl"] .toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.toast-content i {
    font-size: 1.25rem;
}

/* ========================================
   MICRO ANIMATIONS
======================================== */
.btn-hover {
    position: relative;
    overflow: hidden;
}

.btn-hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-hover:hover::after {
    width: 300px;
    height: 300px;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.service-card.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.service-card.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

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

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

/* Pulse Glow */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(139, 0, 0, 0); }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Mobile Menu Animation */
.mobile-menu-animate {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ENHANCED RESPONSIVE STYLES
======================================== */
@media (max-width: 1280px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 1024px) {
    .hero-section h2 {
        font-size: 2.75rem !important;
    }
    
    .service-card {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    /* Top Bar */
    .top-bar .flex.items-center.gap-6 {
        display: none;
    }
    
    /* Hero */
    .hero-section {
        min-height: auto;
    }
    
    .hero-section h2 {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Services */
    .service-card {
        padding: 20px;
        border-right: none !important;
        border-left: none !important;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .service-card:last-child {
        border-bottom: none;
    }
    
    /* Stats */
    .stats-section .grid {
        gap: 24px;
    }
    
    .stats-section .text-4xl {
        font-size: 1.75rem;
    }
    
    /* Modal */
    .modal-content {
        padding: 24px;
        border-radius: 20px;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    /* Footer */
    footer .grid {
        gap: 32px;
    }
    
    footer h5 {
        margin-bottom: 12px;
    }
}

@media (max-width: 640px) {
    /* Header */
    header .container {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    header h1 {
        font-size: 1rem;
    }
    
    header p {
        font-size: 0.75rem;
    }
    
    /* Logo */
    header .w-14 {
        width: 48px;
        height: 48px;
    }
    
    /* Hero */
    .hero-section {
        padding-top: 24px;
        padding-bottom: 24px;
    }
    
    .hero-section h2 {
        font-size: 1.75rem !important;
    }
    
    .hero-section .flex.items-center.gap-4 {
        flex-direction: column;
    }
    
    .hero-section .flex.items-center.gap-4 a {
        width: 100%;
        justify-content: center;
    }
    
    /* Service cards stacked */
    #services .grid {
        grid-template-columns: 1fr;
    }
    
    /* Stats 2 columns */
    .stats-section .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer stacked */
    footer .grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    footer .flex.items-center.gap-3 {
        justify-content: center;
    }
    
    footer ul {
        text-align: center;
    }
    
    footer .flex.gap-4 {
        justify-content: center;
    }
    
    /* Modal */
    .modal-container {
        padding: 16px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .input-wrapper input {
        padding: 12px 12px 12px 44px;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .btn-submit {
        padding: 14px 20px;
    }
    
    /* Toast */
    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .hero-section h2 {
        font-size: 1.5rem !important;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        top: 16px;
        right: 16px;
    }
    
    .checkbox-wrapper {
        font-size: 0.8125rem;
    }
    
    .checkmark {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .btn-submit:hover {
        transform: none;
        box-shadow: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .btn-hover:hover::after {
        width: 0;
        height: 0;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-ticker {
        animation: none;
    }
}

/* ========================================
   DASHBOARD STYLES
======================================== */
.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color, #1e3a5f), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

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

.dashboard-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.dashboard-card:hover .dashboard-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.dashboard-card-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.3s ease;
}

body[dir="rtl"] .dashboard-card-arrow {
    right: auto;
    left: 24px;
}

body[dir="rtl"] .dashboard-card-arrow i {
    transform: rotate(180deg);
}

.dashboard-card:hover .dashboard-card-arrow {
    background: #1e3a5f;
    color: white;
    transform: translateX(5px);
}

body[dir="rtl"] .dashboard-card:hover .dashboard-card-arrow {
    transform: translateX(-5px);
}

/* User Menu */
.user-menu-animate {
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#userMenuArrow {
    transition: transform 0.2s ease;
}

#userMenuArrow.rotate-180 {
    transform: rotate(180deg);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Dashboard Responsive */
@media (max-width: 1280px) {
    .dashboard-card {
        padding: 24px;
    }
    
    .dashboard-card-icon {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 1024px) {
    .dashboard-card h3 {
        font-size: 1rem;
    }
    
    .dashboard-card p {
        font-size: 0.8125rem;
    }
}

@media (max-width: 768px) {
    .dashboard-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .dashboard-card-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
    }
    
    .dashboard-card-icon i {
        font-size: 1.5rem !important;
    }
    
    .dashboard-card-arrow {
        width: 32px;
        height: 32px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Table responsive */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    table th,
    table td {
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .dashboard-card {
        padding: 16px;
    }
    
    .dashboard-card-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    
    .dashboard-card h3 {
        font-size: 0.9375rem;
    }
    
    .dashboard-card p {
        font-size: 0.75rem;
        display: none;
    }
    
    .dashboard-card-arrow {
        display: none;
    }
    
    /* Stack cards in 2 columns on mobile */
    .grid.xl\\:grid-cols-5 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    /* Quick stats 2 columns */
    .grid.md\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Welcome banner */
    .bg-gradient-to-r.from-primary h1 {
        font-size: 1.5rem;
    }
    
    .bg-gradient-to-r.from-primary p {
        font-size: 0.875rem;
    }
}

/* ========================================
   MY ACCOUNT PAGE STYLES
======================================== */
/* Fade In Animation */
.animate-fade-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Card */
.profile-card {
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
}

/* Avatar Ring Animation */
.avatar-ring {
    position: relative;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #c4a052;
    border-right-color: #c4a052;
    animation: avatarSpin 3s linear infinite;
}

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

/* Form Styles for My Account */
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f9fafb;
}

body[dir="rtl"] .form-input {
    padding: 14px 48px 14px 16px;
}

.form-input:focus {
    outline: none;
    border-color: #1e3a5f;
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.form-input:hover:not(:focus) {
    border-color: #d1d5db;
}

/* Edit Indicator */
.edit-indicator {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    opacity: 0;
    transition: all 0.2s ease;
}

body[dir="rtl"] .edit-indicator {
    right: auto;
    left: 16px;
}

.input-wrapper:hover .edit-indicator,
.input-wrapper.focused .edit-indicator {
    opacity: 1;
    color: #1e3a5f;
}

/* Secondary Button */
.btn-secondary {
    padding: 16px 24px;
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* My Account Responsive */
@media (max-width: 1024px) {
    .profile-card .w-32 {
        width: 100px;
        height: 100px;
    }
    
    .profile-card .text-4xl {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .grid.lg\\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .lg\\:col-span-1,
    .lg\\:col-span-2 {
        grid-column: span 1;
    }
    
    .profile-card {
        margin-bottom: 0;
    }
    
    .form-input {
        font-size: 16px; /* Prevents iOS zoom */
    }
}

@media (max-width: 640px) {
    .profile-card .w-32 {
        width: 80px;
        height: 80px;
    }
    
    .profile-card .text-4xl {
        font-size: 1.5rem;
    }
    
    .avatar-ring::before {
        inset: -3px;
        border-width: 2px;
    }
    
    .grid.md\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .md\\:col-span-2 {
        grid-column: span 1;
    }
    
    .btn-submit,
    .btn-secondary {
        padding: 14px 20px;
        width: 100%;
    }
    
    .flex.sm\\:flex-row {
        flex-direction: column;
    }
}

/* ========================================
   VACCINATION PAGE STYLES
======================================== */
/* Tab Buttons */
.tab-btn {
    color: #6b7280;
    background: transparent;
}

.tab-btn.active {
    color: white;
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.tab-btn:not(.active):hover {
    background: #f3f4f6;
    color: #374151;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-indicator.active .step-circle {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    text-align: center;
}

.step-indicator.active .step-label {
    color: #7c3aed;
    font-weight: 600;
}

/* Form Steps */
.form-step {
    animation: stepFadeIn 0.4s ease forwards;
}

.form-step.hidden {
    display: none;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Vaccination Type Cards */
.vaccination-type-card {
    cursor: pointer;
    display: block;
}

.vaccination-type-card .card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.vaccination-type-card:hover .card-content {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.vaccination-type-card.selected .card-content {
    border-color: #9333ea;
    background: #faf5ff;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.15);
}

.vaccine-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.check-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.vaccination-type-card.selected .check-indicator {
    background: #9333ea;
    transform: translateY(-50%) scale(1.1);
}

/* Application Cards */
.application-card {
    transition: all 0.3s ease;
}

.application-card:hover {
    transform: translateY(-2px);
}

/* Review Card */
.review-card {
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Vaccination Page Responsive */
@media (max-width: 768px) {
    .step-indicator {
        flex: 1;
    }
    
    .step-label {
        display: none;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .vaccination-type-card .card-content {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .check-indicator {
        position: static;
        transform: none;
        margin-top: 8px;
    }
    
    .vaccination-type-card.selected .check-indicator {
        transform: scale(1.1);
    }
}

@media (max-width: 640px) {
    .tab-btn {
        padding: 12px 16px;
        font-size: 0.875rem;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .tab-btn i {
        margin: 0;
    }
}

/* ========================================
   LAND APPLICATIONS PAGE STYLES
======================================== */
/* Land Tab Buttons */
.tab-btn.land.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Land Step Circle */
.step-circle.land {
    background: #e5e7eb;
}

.step-indicator.active .step-circle.land {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.step-indicator.active .step-label.land,
.step-indicator.active + .step-label {
    color: #d97706;
}

/* Land Purpose Cards */
.land-purpose-card {
    cursor: pointer;
    display: block;
}

.land-purpose-card .card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.land-purpose-card:hover .card-content {
    border-color: #fcd34d;
    background: #fffbeb;
}

.land-purpose-card.selected .card-content {
    border-color: #f59e0b;
    background: #fffbeb;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.purpose-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.land-purpose-card .check-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.land-purpose-card.selected .check-indicator {
    background: #f59e0b;
    transform: translateY(-50%) scale(1.1);
}

/* Land Submit Button */
.btn-submit.btn-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.btn-submit.btn-amber:hover {
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 120px;
}

.file-upload-wrapper:hover .file-upload-label {
    border-color: #f59e0b;
    background: #fffbeb;
}

.file-upload-label.uploaded {
    border-color: #10b981;
    background: #ecfdf5;
}

/* Land Page Responsive */
@media (max-width: 768px) {
    .land-purpose-card .card-content {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .land-purpose-card .check-indicator {
        position: static;
        transform: none;
        margin-top: 8px;
    }
    
    .land-purpose-card.selected .check-indicator {
        transform: scale(1.1);
    }
    
    .file-upload-label {
        min-height: 100px;
        padding: 16px;
    }
}

/* ========================================
   PASSPORT RENEWAL PAGE STYLES
======================================== */
/* Passport Tab Buttons */
.tab-btn.passport.active {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

/* Passport Step Circle */
.step-circle.passport {
    background: #e5e7eb;
}

.step-indicator.active .step-circle.passport {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

/* Renewal Reason Cards */
.renewal-reason-card {
    cursor: pointer;
    display: block;
}

.renewal-reason-card .card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.renewal-reason-card:hover .card-content {
    border-color: #67e8f9;
    background: #ecfeff;
}

.renewal-reason-card.selected .card-content {
    border-color: #06b6d4;
    background: #ecfeff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15);
}

.reason-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.renewal-reason-card .check-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.renewal-reason-card.selected .check-indicator {
    background: #06b6d4;
    transform: translateY(-50%) scale(1.1);
}

/* Passport Submit Button */
.btn-submit.btn-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.btn-submit.btn-cyan:hover {
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

/* Passport File Upload */
.file-upload-wrapper.passport:hover .file-upload-label {
    border-color: #06b6d4;
    background: #ecfeff;
}

/* Passport Page Responsive */
@media (max-width: 768px) {
    .renewal-reason-card .card-content {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .renewal-reason-card .check-indicator {
        position: static;
        transform: none;
        margin-top: 8px;
    }
    
    .renewal-reason-card.selected .check-indicator {
        transform: scale(1.1);
    }
}

/* ========================================
   MY APPLICATIONS PAGE STYLES
======================================== */
/* Stats Cards */
.stats-card {
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
}

/* Filter Buttons */
.filter-btn {
    background: #f3f4f6;
    color: #6b7280;
}

.filter-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.filter-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Application Items */
.application-item {
    transition: all 0.3s ease;
}

.application-item:hover {
    transform: translateX(5px);
}

/* Modal Animation */
.modal-content {
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* My Applications Responsive */
@media (max-width: 768px) {
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.875rem;
    }
    
    .application-item:hover {
        transform: none;
    }
}
