/* ==========================================================================
   Account Style - Clean Modern Light Theme with Multi-Color Accent Borders
   ========================================================================== */

/* Global Settings & Variables */
:root {
    --primary-color: #0284c7;       /* vibrant blue */
    --primary-dark: #0369a1;        /* dark blue */
    --text-color: #0f172a;          /* main dark blue text */
    --text-muted: #64748b;          /* subtle gray text */
    --border-color: #38bdf8;        /* light blue default border */
    
    /* Dedicated Accent Text Colors */
    --title-color: #1e40af;         /* deep royal blue for titles */
    --price-color: #16a34a;         /* energetic green */
    
    /* 6 Vibrant Multi-Color Palette for Borders */
    --c-red: #ef4444;
    --c-yellow: #f59e0b;
    --c-green: #10b981;
    --c-blue: #0284c7;
    --c-purple: #8b5cf6;
    --c-pink: #ec4899;

    /* Light Theme Backgrounds */
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(2, 132, 199, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Hind Siliguri', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #eafaf1;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(187, 247, 208, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(224, 242, 254, 0.8) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-color);
}

.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 15px;
}

/* --------------------------------------------------------------------------
   ১. গেস্ট ভিউ (Guest View - Logged Out State)
   -------------------------------------------------------------------------- */
.guest-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.1);
    border: 3px solid var(--c-purple); /* Standout Purple Accent Border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2);
}

.guest-icon {
    font-size: 70px;
    color: var(--c-purple);
    margin-bottom: 15px;
}

.guest-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--title-color);
    font-weight: 800;
}

.guest-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 15px;
    font-weight: 500;
}

.btn-trigger {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
    transition: all 0.3s ease;
}

.btn-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

/* --------------------------------------------------------------------------
   ২. মডার্ন মোডাল (Login / Register Modal Popup)
   -------------------------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 30px 25px;
    border-radius: 16px;
    border: 3px solid var(--c-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideDown 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    right: 18px;
    top: 15px;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--c-red);
}

.modal h3 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--title-color);
    font-weight: 800;
}

/* ফর্ম অ্যান্ড ইনপুট ফিল্ডস */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-color);
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.2);
    background: #ffffff;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

.toggle-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

.toggle-link span {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   ৩. ইউজার ড্যাশবোর্ড (User Dashboard Grid)
   -------------------------------------------------------------------------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* সাইডবার প্রোফাইল কার্ড */
.user-sidebar {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2.5px solid var(--c-blue);
    height: fit-content;
}

.avatar-wrapper {
    width: 75px;
    height: 75px;
    background: #e0f2fe;
    color: var(--primary-color);
    font-size: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.sidebar-phone {
    font-size: 16px;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 20px;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: #fef2f2;
    color: var(--c-red);
    border: 2px solid var(--c-red);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: var(--c-red);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* --------------------------------------------------------------------------
   ৪. মেইন কন্টেন্ট (Order History Panel & Table)
   -------------------------------------------------------------------------- */
.orders-panel {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2.5px solid var(--c-green); /* Emerald Green Border for Panel */
}

.panel-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ক্লিন অর্ডার টেবিল */
.table-responsive {
    overflow-x: auto;
    border-radius: 10px;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.order-table th {
    background-color: #f1f5f9;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 15px;
    border-bottom: 2px solid #e2e8f0;
}

.order-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.order-table tr:hover td {
    background-color: #f8fafc;
}

/* স্ট্যাটাস ব্যাজসমূহ (Status Badges) */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.status-pending { 
    background-color: #fef3c7; 
    color: #d97706; 
    border: 1px solid #f59e0b;
}

.status-completed { 
    background-color: #d1fae5; 
    color: #059669; 
    border: 1px solid #10b981;
}

.status-cancelled { 
    background-color: #fee2e2; 
    color: #dc2626; 
    border: 1px solid #ef4444;
}

/* অ্যালার্ট / নোটিফিকেশন মেসেজ */
.alert {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    border: 1.5px solid #fca5a5;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}