@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #0088cc; /* Image Blue */
    --bg: #f4f7f6;
    --white: #ffffff;
    --text: #333;
    --gray: #777;
    --border: #eee;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }

body { background-color: var(--bg); height: 100vh; overflow: hidden; color: var(--text); }

/* --- AUTH PAGES (Login/Register) --- */
.auth-container { display: flex; justify-content: center; align-items: center; height: 100vh; background: linear-gradient(135deg, #0088cc, #005f8f); }
.auth-card { background: white; padding: 40px; width: 100%; max-width: 400px; border-radius: 15px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { font-size: 12px; color: var(--gray); text-transform: uppercase; display: block; margin-bottom: 5px; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; outline: none; }
.form-group input:focus { border-color: var(--primary); }
.btn { width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.btn:hover { background: #006fa6; }
.link { display: block; margin-top: 15px; font-size: 13px; color: var(--primary); text-decoration: none; }

/* --- DASHBOARD LAYOUT --- */
.app-container { display: flex; height: 100vh; width: 100%; }

/* 1. Sidebar (Left) */
.sidebar { width: 80px; background: var(--primary); display: flex; flex-direction: column; align-items: center; padding: 30px 0; color: white; justify-content: space-between; }
.logo { font-size: 24px; margin-bottom: 40px; }
.menu li { list-style: none; margin: 25px 0; font-size: 20px; cursor: pointer; color: #8ecae6; transition: 0.2s; }
.menu li.active, .menu li:hover { color: white; }
.profile img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid white; }

/* 2. Order List Panel (Middle) */
.order-panel { width: 450px; background: #f8f9fa; padding: 25px; overflow-y: auto; border-right: 1px solid #ddd; display: flex; flex-direction: column; }

.search-box { background: white; padding: 12px; border-radius: 10px; display: flex; align-items: center; margin-bottom: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.search-box input { border: none; outline: none; margin-left: 10px; width: 100%; font-size: 14px; }

.panel-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; color: #333; }

/* Card Design */
.card { background: white; border-radius: 16px; padding: 20px; margin-bottom: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); cursor: pointer; transition: transform 0.2s; border: 1px solid transparent; }
.card:hover { transform: translateY(-2px); border-color: var(--primary); }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.lbl { font-size: 10px; color: #999; text-transform: uppercase; display: block; margin-bottom: 3px; }
.val { font-size: 14px; font-weight: 600; color: #333; }
.badge { font-size: 11px; padding: 5px 12px; border-radius: 20px; font-weight: 600; color: white; }
.badge.In-Transit { background: var(--primary); }
.badge.Pending { background: #95a5a6; }
.badge.Completed { background: #f39c12; }

/* Timeline Visual (The vertical line) */
.timeline { position: relative; padding-left: 25px; margin: 15px 0; border-left: 2px dashed #e0e0e0; margin-left: 8px; }
.point { position: relative; margin-bottom: 20px; }
.point:last-child { margin-bottom: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; position: absolute; left: -31px; top: 5px; border: 2px solid white; box-shadow: 0 0 0 2px var(--primary); background: white; }
.dot.fill { background: var(--primary); }
.addr { font-size: 13px; color: #555; }
.time { font-size: 11px; color: #999; margin-right: 5px; font-weight: 600; }

/* User Row */
.user-row { display: flex; align-items: center; margin-top: 15px; padding-top: 15px; border-top: 1px solid #f0f0f0; }
.user-row img { width: 32px; height: 32px; border-radius: 8px; margin-right: 10px; }
.actions { margin-left: auto; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #eee; background: white; color: var(--primary); cursor: pointer; }

/* 3. Map Panel (Right) */
.map-panel { flex: 1; position: relative; }
#map { width: 100%; height: 100%; z-index: 1; }

/* Overlay Card on Map */
.map-overlay { position: absolute; bottom: 30px; right: 30px; left: 30px; background: white; padding: 20px; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); z-index: 999; display: flex; align-items: center; justify-content: space-between; }

/* Ensure the body and html take up the full viewport */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    color: white; /* Default text color for the background */
}

/* 1. Background Image Container */
.background-container {
    height: 100vh;
    display: flex; /* Use flexbox for the two-column layout */
    background-image: url('Background image.png'); /* !!! CHANGE THIS TO YOUR IMAGE PATH !!! */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Optional: Add a subtle overlay to help text visibility */
    /* background-color: rgba(0, 0, 0, 0.2); 
    background-blend-mode: overlay; */
}

/* 2. Left Panel Styling (Welcome Back) */
.left-panel {
    flex: 1; /* Takes up one part of the space (e.g., 50%) */
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Shadow for better contrast */
}

.left-panel h1 {
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1;
}

.left-panel .tagline {
    font-size: 1rem;
    max-width: 400px;
    margin-bottom: 40px;
}

.social-icons a {
    color: white;
    margin-right: 15px;
    font-size: 1.5rem;
    text-decoration: none;
    /* You'll need to include a font-awesome CSS file for the icons to show */
}

/* 3. Right Panel Styling (Sign In Form) */
.right-panel {
    flex: 1; /* Takes up the other part of the space (e.g., 50%) */
    background-color: rgba(141, 60, 60, 0.1); /* Slightly transparent overlay for the form side */
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 350px;
    padding: 40px;
    /* No explicit background color to show the image */
    color: white; 
    text-align: right; /* Align elements to the right as in the image */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.login-card h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 40px;
}

.login-card form {
    display: flex;
    flex-direction: column;
}

.login-card label {
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: 500;
}

.login-card input[type="email"],
.login-card input[type="password"] {
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white input */
    color: #333;
}

.remember-me {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align right */
    margin-bottom: 20px;
}

.remember-me label {
    margin: 0 0 0 5px; /* Adjust margin */
    font-size: 0.9rem;
    font-weight: normal;
}

.sign-in-button {
    background-color: #ff6600; /* Orange color from the image */
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.sign-in-button:hover {
    background-color: #e65c00;
}

.forgot-password {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 15px;
    display: block; /* Make it a block element to align right */
}

.terms {
    font-size: 0.8rem;
    margin-top: 40px;
    line-height: 1.5;
}

.terms a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
}

.error-message {
    color: orange;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Add a link to the Font Awesome CSS in your HTML <head> 
   to display the social media icons:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> 
*/
/* ... (Keep all existing styles for html, body, .background-container, .left-panel, etc.) ... */

/* 3. Right Panel Styling (Sign In Form) */
.right-panel {
    flex: 1; 
    background-color: rgba(0, 0, 0, 0.1); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 350px;
    padding: 40px;
    color: white; 
    /* CHANGED: Align content to the center */
    text-align: center; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.login-card h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 40px;
}

.login-card form {
    display: flex;
    flex-direction: column;
    /* Center the form elements horizontally */
    align-items: center; 
}

/* Ensure labels and inputs take full width inside the centered form */
.login-card label,
.login-card input[type="email"],
.login-card input[type="password"] {
    width: 100%; /* Make them span the full width of the card */
    box-sizing: border-box; /* Include padding/border in the element's total width */
}

.login-card label {
    text-align: left; /* Align labels to the left above the input */
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: 500;
}

/* Center-align the remember me checkbox */
.remember-me {
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */
    width: 100%; /* Ensure it spans the width for centering */
    margin-bottom: 20px;
}

/* NEW: Button Group Styling for side-by-side buttons */
.button-group {
    display: flex;
    justify-content: space-between; /* Space out the two buttons */
    width: 100%; /* Make the group span the full width */
    gap: 10px; /* Space between the buttons */
    margin-top: 10px;
}

/* Styles applied to both buttons in the group */
.sign-in-button,
.register-button {
    flex: 1; /* Make both buttons take up equal space */
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-align: center; /* Center the button text */
    text-decoration: none; /* For the register link/button */
    transition: background-color 0.3s;
}

.sign-in-button {
    background-color: #ff6600; /* Orange color for sign in */
    color: white;
}

.sign-in-button:hover {
    background-color: #e65c00;
}

.register-button {
    background-color: transparent; /* Transparent background */
    color: white;
    border: 2px solid white; /* White border to make it visible */
    line-height: normal; /* Ensure text alignment is correct */
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-button:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Slight white tint on hover */
}

/* Center-align the rest of the text elements */
.forgot-password {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 15px;
    display: block; 
    text-align: center; /* Center the "Lost your password?" link */
}

.terms {
    font-size: 0.8rem;
    margin-top: 40px;
    line-height: 1.5;
    text-align: center; /* Center the terms text */
}

.terms a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
}

.error-message {
    color: orange;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}
