/* --- DASHBOARD STYLES (Phase 15) --- */
.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1600px;
    /* Wider layout */
    margin: 0 auto;
    min-height: 80vh;
    font-family: 'Open Sans', sans-serif;
}

/* Sidebar Navigation */
.dash-sidebar {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 30px 20px;
    height: fit-content;
    position: sticky;
    top: 120px;
    border: 1px solid #eee;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    cursor: pointer;
}

.dash-nav-item:hover,
.dash-nav-item.active {
    background: rgba(0, 210, 211, 0.1);
    /* Light accent bg */
    color: var(--primary-dark);
}

.dash-nav-item i {
    width: 25px;
    text-align: center;
    font-size: 1.1rem;
}

.dash-nav-item.active i {
    color: var(--accent);
}

.dash-nav-item.logout {
    margin-top: 30px;
    color: #ff7675;
    border-top: 1px solid #eee;
    border-radius: 0;
    padding-top: 25px;
}

.dash-nav-item.logout:hover {
    background: #fff5f5;
}

/* Content Area */
.dash-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
    animation: fadeIn 0.4s ease;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.dash-welcome h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.customer-id {
    background: var(--primary-dark);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Cards & Widgets */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid var(--accent);
}

.stat-card h4 {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

/* Tables (Medical / Professional Look) */
.dash-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.dash-table th {
    text-align: left;
    padding: 15px;
    background: #f1f3f5;
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 2px solid #ddd;
}

.dash-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.dash-table tr:hover {
    background-color: #fcfcfc;
}

/* Status Badges */
.badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.shipped,
.badge.approved {
    background: rgba(0, 210, 211, 0.15);
    color: #009798;
}

/* Accent Color */
.badge.processing,
.badge.pending {
    background: #fff3cd;
    color: #856404;
}

.badge.expired {
    background: #f8d7da;
    color: #721c24;
}

/* Actions */
.action-btn {
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-outline {
    color: var(--accent);
    border-color: var(--accent);
    background: transparent;
}

.btn-primary-outline:hover {
    background: var(--accent);
    color: white;
}

.btn-blue-sm {
    background: #3498db;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.btn-blue-sm:hover {
    width: auto;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

/* Cards Layout for Address/Payment */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    position: relative;
}

.info-card.default {
    border-color: var(--accent);
    background: rgba(0, 210, 211, 0.02);
}

.info-card h4 {
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.info-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 5px;
}

.card-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
}

.link-action {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
}

.link-action:hover {
    color: var(--accent);
}

.link-action.remove:hover {
    color: #ff7675;
}

/* Views Visibility */
.dash-section {
    display: none;
}

.dash-section.active {
    display: block;
    animation: fadeIn 0.3s;
}

@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}