@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --secondary-color: #f8f9fa;
    --text-color: #333333;
    --text-muted: #6c757d;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --bg-gradient: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
    --card-hover-transform: translateY(-5px);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

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

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.py-5 { padding-top: 4rem; padding-bottom: 4rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Navbar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

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

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

/* Hero Section */
.hero {
    padding: 8rem 0 6rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Cards & Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: var(--card-hover-transform);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Calculator Section */
.calculator-section {
    background: #f8fbff;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.price-result {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 20px;
}

/* Tracking Section */
.tracking-input-group {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.tracking-input-group input {
    flex: 1;
    border-radius: 50px;
}

/* Footer */
footer {
    background: #ffffff;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #eaeaea;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 0;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        margin: 0 auto 30px auto;
    }
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none; /* In a real app, add a hamburger menu */
    }
}

/* Stepper / Live Tracking CSS */
.stepper-wrapper { display: flex; justify-content: space-between; position: relative; margin-top: 30px; margin-bottom: 20px; }
.stepper-item { position: relative; display: flex; flex-direction: column; align-items: center; flex: 1; z-index: 1; }
.stepper-item::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: #e0e0e0; z-index: -1; }
.stepper-item:first-child::before { display: none; }
.stepper-item.completed::before, .stepper-item.active::before { background: var(--primary-color); }
.stepper-item .step-counter { position: relative; width: 30px; height: 30px; border-radius: 50%; background: #e0e0e0; color: #fff; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 14px; margin-bottom: 8px; transition: all 0.3s ease; }
.stepper-item.completed .step-counter { background: var(--primary-color); }
.stepper-item.active .step-counter { background: var(--primary-color); box-shadow: 0 0 0 5px rgba(0, 123, 255, 0.2); }
.stepper-item .step-name { font-size: 12px; font-weight: 500; color: #6c757d; text-align: center; }
.stepper-item.completed .step-name, .stepper-item.active .step-name { color: var(--text-color); font-weight: 600; }
/* Dashboard Layout */
body.dashboard-body {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
    background: #f4f7f6;
    margin: 0;
    padding: 0;
}

/* Sidebar */
.dash-sidebar {
    width: 80px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    z-index: 50;
    flex-shrink: 0;
}

.dash-sidebar .logo {
    margin-bottom: 40px;
    color: var(--primary-color);
}

.dash-menu-icon {
    margin-bottom: 24px;
    padding: 12px;
    border-radius: 12px;
    color: #94a3b8;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-menu-icon:hover, .dash-menu-icon.active {
    background: #eff6ff;
    color: var(--primary-color);
}

.dash-sidebar .logout {
    margin-top: auto;
    color: #ef4444;
    margin-bottom: 0;
}

.dash-sidebar .logout:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Main Content Area */
.dash-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Top Navbar inside Dashboard */
.dash-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background: transparent;
}

.dash-search {
    background: #ffffff;
    border-radius: 20px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    min-width: 300px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.dash-search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}

.dash-search input::placeholder {
    color: #94a3b8;
}

.dash-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dash-date {
    font-weight: 500;
    color: #64748b;
    font-size: 0.9rem;
}

.dash-icon-btn {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #64748b;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.dash-icon-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.dash-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* Dashboard Content */
.dash-content {
    padding: 0 40px 40px 40px;
    flex: 1;
}

/* Dashboard Title Area */
.dash-header {
    margin-bottom: 24px;
}
.dash-header h2 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}
.dash-header p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

/* Redesigned Cards */
.dash-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
    height: 100%;
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Specific Stat Card Types */
.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-title {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Table styling for dashboard */
.dash-table-wrapper {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 900px;
}

.dash-table th {
    padding: 16px 24px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(248, 250, 252, 0.8);
    letter-spacing: 0.05em;
}

.dash-table td {
    padding: 16px 24px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-color);
    vertical-align: middle;
}

.dash-table tr:last-child td {
    border-bottom: none;
}

.dash-table tr:hover td {
    background: #f8fafc;
}

/* Badges */
.dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.dash-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}