/* 
 * Mobile Specific Styles for Koadi Technology
 * These styles are specific to the mobile version of the website
 */

/* Base Styles */
.mobile-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f8f9fa;
    padding-bottom: 60px; /* Space for bottom navigation */
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-logo img {
    max-height: 40px;
}

/* Avatar Circle */
.avatar-circle {
    border-radius: 50%;
    object-fit: cover;
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #005eff 0%, #4e00b4 100%);
    z-index: -1;
}

/* Hero Sections */
.home-hero,
.about-hero,
.service-hero {
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    padding-bottom: 40px; /* Space for the wave */
    background-color: #0d6efd;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

/* Wave Divider */
.wave-divider {
    height: 40px;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    height: 100%;
}

/* Dividers */
.divider-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-bar {
    width: 50px;
    height: 4px;
    border-radius: 2px;
}

/* Service Cards */
.service-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
}

/* How It Works Section */
.step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-weight: bold;
}

/* Client Types Icons */
.client-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.bg-primary-light {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.5rem 0;
}

.nav-item a {
    color: #6c757d;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.nav-item .nav-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.nav-item.active a {
    color: #0d6efd;
}

/* Mobile Sidebar Navigation */
.mobile-sidebar-nav .nav-item .nav-link {
    font-size: 0.95rem;  /* Reduced text size */
    font-weight: 500;   /* Slightly bolder */
    padding: 10px 0;    /* More vertical padding */
    margin-bottom: 3px; /* Space between items */
}

/* Submenu styles */
.mobile-sidebar-nav .submenu .nav-item .nav-link {
    font-size: 0.85rem; /* Smaller font for submenu items */
    padding: 6px 0;     /* Less padding for submenu items */
    margin-bottom: 2px; /* Less margin for submenu items */
}

/* Submenu toggle icon */
.submenu-toggle .fas {
    transition: transform 0.3s ease;
}

.nav-link:not(.collapsed) .submenu-toggle .fas {
    transform: rotate(180deg);
}

/* Add border and padding to submenu */
#supportServicesSubmenu {
    border-left: 2px solid rgba(108, 117, 125, 0.2);
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 5px;
}

/* Make the login/join button text larger in sidebar */
#mobileMenu .offcanvas-body .btn.auth-modal-trigger {
    font-size: 1.2rem;
    padding: 12px 0;
}

/* Mobile Cards and Content */
.mobile-content {
    padding-top: 65px; /* Space for fixed header */
    padding-bottom: 70px; /* Space for bottom navigation */
    min-height: 100vh; /* Ensure content fills the screen */
}

.mobile-card {
    border-radius: 15px;
    overflow: hidden;
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.25);
}

/* For Dark Mode Support */
[data-bs-theme="dark"] .mobile-body {
    background-color: #212529;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .mobile-header,
[data-bs-theme="dark"] .mobile-bottom-nav {
    background-color: #2b3035;
}

[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-light {
    background-color: #2b3035 !important;
}

[data-bs-theme="dark"] .card {
    background-color: #343a40;
    border-color: #495057;
}

[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .nav-item a {
    color: #adb5bd;
}

[data-bs-theme="dark"] .nav-item.active a {
    color: #6ea8fe;
}

/* Job Status Badges */
.job-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    text-transform: capitalize;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}