﻿.dashboard-shell {
    min-height: 100vh;
    padding: 32px;
    background: #f8fafc; /* clean white/gray */
    color: #0f172a; /* dark text */
}

/* HERO */
.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
    padding: 28px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.logotext {
    width: 100%;
}

.eyebrow {
    margin: 0 0 8px 0;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
    color: #6366f1; /* purple accent */
}

.dashboard-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    color: #0f172a;
}

.hero-subtitle {
    margin-top: 14px;
    max-width: 700px;
    color: #475569;
    font-size: 1.05rem;
}

/* BADGE */
.hero-badge {
    min-width: 160px;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #7c3aed); /* blue → purple */
    color: white;
    text-align: right;
    box-shadow: 0 10px 25px rgba(59,130,246,0.25);
}

.badge-label {
    display: block;
    font-size: .75rem;
    opacity: .85;
    margin-bottom: 6px;
}

.badge-value {
    font-size: 1.2rem;
    font-weight: 700;
}

/* GRID */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

/* CARDS */
.dashboard-card,
.loading-card,
.error-card {
    border-radius: 20px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0,0,0,.05);
}

.dashboard-card {
    position: relative;
    overflow: hidden;
}

    /* subtle accent line instead of full overlay */
    .dashboard-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 4px;
        width: 100%;
        background: linear-gradient(90deg, #3b82f6, #7c3aed);
    }

/* HEADER */
.card-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #6366f1;
}

.card-header h2 {
    margin: 0;
    font-size: 1.35rem;
}

.card-header p {
    margin: 6px 0 18px 0;
    color: #64748b;
}

/* INFO LIST */
.info-list {
    display: grid;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f1f5f9;
}

.label {
    color: #6366f1; /* purple */
    font-weight: 600;
}

.value {
    text-align: right;
    font-weight: 500;
    color: #0f172a;
}

/* SUMMARY */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.summary-pill {
    padding: 18px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    color: white;
    text-align: center;
}

.summary-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.summary-text {
    font-size: .9rem;
    opacity: .9;
}

/* LOADING / ERROR */
.loading-card,
.error-card {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px auto;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    border-top-color: #6366f1;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .dashboard-shell {
        padding: 18px;
    }

    .dashboard-hero {
        flex-direction: column;
    }

    .hero-badge {
        width: 100%;
        text-align: left;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .value {
        text-align: left;
    }
}
.empty-state {
    padding: 18px;
    border-radius: 14px;
    background: #f1f5f9;
    text-align: center;
}

    .empty-state p {
        margin: 0 0 14px 0;
        color: #475569;
    }

.primary-action {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    color: white;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(59,130,246,0.25);
}
.address-search-group {
    position: relative;
}

.suggestion-list {
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.suggestion-item {
    width: 100%;
    border: none;
    background: #ffffff;
    text-align: left;
    padding: 14px 16px;
    cursor: pointer;
    color: #0f172a;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
}

    .suggestion-item:last-child {
        border-bottom: none;
    }

    .suggestion-item:hover {
        background: #f8fafc;
    }