/* Mobile Care Clinic (MCC) - Core Layout Framework 
   Includes: Header, Navigation (Hide/Show), Animated Mobile Menu, Page Hero, & Footer
*/

:root {
    --primary: #00897b;
    --primary-dark: #00695c;
    --secondary: #263238;
    --white: #ffffff;
    --bg-light: #f4f7f6;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ফন্ট ফেস কনফিগারেশন */
@font-face {
    font-family: 'Adorsho';
    src: url('../AdorshoLip.ttf') format('truetype');
    font-display: swap;
}

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

body {
    font-family: 'Adorsho', sans-serif !important;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 75px; 
    -webkit-user-select: none; /* Safari/Chrome */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;     
}
/* ছবির ওপর লং প্রেস, সিলেক্ট এবং ড্র্যাগ করে ডাউনলোড বন্ধ করা */
img {
    -webkit-user-drag: none; /* ক্রোম/সফারি ড্র্যাগ বন্ধ */
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    
    -webkit-touch-callout: none; /* আইফোন/মোবাইলে লং-প্রেস মেনু বন্ধ */
    pointer-events: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ১. হেডার ও নেভিগেশন (ডেস্কটপ ও মোবাইল এনিমেশন) --- */
/* --- ১. হেডার ও নেভিগেশন (আপডেটেড) --- */
.header {
    background: var(--white);
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease-in-out;
}

.header.hide { transform: translateY(-100%); }

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px; /* মার্জিন বাদ দিয়ে প্যাডিং সামঞ্জস্য করা হয়েছে */
}

/* লোগো ও ডায়নামিক স্ট্যাটাস ব্যাজকে পাশাপাশি রাখার ফ্লেক্স বক্স */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px; /* লোগো ও ব্যাজের ভেতরের দূরত্ব */
}

.logo img { 
    height: 45px; 
    display: block; 
    object-fit: contain; 
}

/* স্ট্যাটাস ব্যাজ রেসপন্সিভ ফিক্স */
.nav-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap; /* টেক্সট যেন ভেঙে নিচে না যায় */
}

.nav-status-badge.open {
    background-color: rgba(46, 125, 50, 0.12);
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.nav-status-badge.open .status-dot {
    width: 8px;
    height: 8px;
    background-color: #2e7d32;
    border-radius: 50%;
    box-shadow: 0 0 6px #2e7d32;
}

.nav-status-badge.closed {
    background-color: rgba(229, 57, 53, 0.12);
    color: #e53935;
    border: 1px solid #e53935;
}

.nav-status-badge.closed .status-dot {
    width: 8px;
    height: 8px;
    background-color: #e53935;
    border-radius: 50%;
    box-shadow: 0 0 6px #e53935;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* মোবাইল রেসপন্সিভ মেনু */
@media (max-width: 768px) {
.menu-icon { 
        display: block; 
        margin-right: 20px; /* মার্জিন কিছুটা কমিয়ে ব্যালেন্স করা হয়েছে */
    }
.nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--white);
        padding: 30px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        gap: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: var(--transition);
        pointer-events: none;
    }
    .nav-links.active {
        opacity: 1; visibility: visible;
        transform: translateY(0); pointer-events: auto;
    }
}

/* --- ২. পেজ হেডার / হিরো সেকশন (অ্যানিমেশনসহ) --- */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/mobile repair servicing centre-home.webp');
    background-size: cover;
    background-position: center;
    height: 25vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.page-header h1 { font-size: 3rem; margin-bottom: 10px; }
.page-header h1 span { color: var(--primary); }

@media (max-width: 768px) {
    .page-header h1 { font-size: 1.5rem; }
    .page-header p { font-size: .8rem; }
}

/* ফেড-ইন অ্যানিমেশন */
.page-header h1, .page-header p { animation: fadeIn 1.2s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ৩. ফুটার সেকশন (রেসপন্সিভ) --- */
footer {
    background: #10181b;
    color: #cbd5e0;
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-logo img { height: 50px; margin-bottom: 20px; }
.footer-banner { max-width: 280px; margin-bottom: 20px; }
.footer-title { color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }

.footer-links { list-style: none; }
.footer-links i { color: var(--primary); margin-right: 10px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #cbd5e0; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.footer-contact p { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }

.footer-socials { display: flex; gap: 15px; margin-top: 25px; }
.footer-socials a {
    text-decoration: none;
    width: 40px; height: 40px; background: #1a2428;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: white; transition: 0.3s;
}
.footer-socials a:hover { background: var(--primary); transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid #1a2428;
    margin-top: 40px; padding-top: 20px; text-align: center;
}
.footer-bottom p { font-size: .8rem; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}



/* --- Mobile Care Clinic: Tracking Page Styles --- */

/* ১. মেইন সেকশন লেআউট */
.tracking-section {
    padding: 80px 0;
    display: flex;
    justify-content: center;
    min-height: 60vh;
}

/* ২. ট্র্যাকিং ইনপুট বক্স (সার্চ এরিয়া) */
.tracking-box {
    background: var(--white);
    max-width: 650px;
    width: 100%;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.tracking-box h3 {
    font-size: 1.6rem;
    color: var(--secondary);
    margin-bottom: 25px;
}

.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.search-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.search-form input:focus {
    border-color: var(--primary);
    background: #fff;
}

.btn-primary {
    font-family: "adorsho";
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ৩. ট্র্যাকিং রেজাল্ট কার্ড (JS জেনারেটেড) */
.tracking-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    text-align: left;
    animation: slideUp 0.6s ease-out;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.id-tag {
    font-weight: bold;
    color: var(--secondary);
    font-size: 1.1rem;
}

/* স্ট্যাটাস ব্যাজ কালার কোড */
.status-badge {
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.status-badge.pending { background: #fff3cd; color: #856404; }
.status-badge.accepted { background: #d1ecf1; color: #0c5460; }
.status-badge.repairing { background: #cfe2ff; color: #084298; }
.status-badge.completed { background: #d4edda; color: #155724; }

/* ৪. প্রগ্রেস বার ডিজাইন */
.progress-section {
    margin-bottom: 30px;
}

.status-msg {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.4;
}

.progress-container {
    height: 10px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    transition: width 1s ease-in-out;
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.step {
    font-size: 0.75rem;
    color: #adb5bd;
    font-weight: 600;
}

.step.active {
    color: var(--primary);
}


.status-badge.failed { background-color: #ffebee; color: #f44336; }
.progress-steps .step.failed-step.active { color: #f44336; font-weight: bold; }

/* ৫. ইনফরমেশন গ্রিড (ডিভাইস ও সমস্যা) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    background: #fdfdfd;
    padding: 15px;
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.info-item span {
    display: block;
    font-size: 0.75rem;
    color: #999;
}

.info-item p {
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary);
}

/* ৬. অ্যাকশন বাটন ও এরর মেসেজ */
.action-buttons {
    text-align: center;
}

.btn-whatsapp {
    display: inline-block;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.error-box {
    margin-top: 20px;
    padding: 20px;
    color: #721c24;
    background: #f8d7da;
    border-radius: 12px;
    border: 1px solid #f5c6cb;
    animation: slideUp 0.4s ease;
}

/* ৭. এনিমেশন ও রেসপন্সিভনেস */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .tracking-section {
        padding: 50px 15px;
    }

    .tracking-box {
        padding: 30px 20px;
    }

    .search-form {
        flex-direction: column;
    }

.btn-primary {
    font-family: "adorsho";
    padding: 15px 30px;
    width: 100%;
}


    .info-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
