/* =========================================
   DASHBOARD PAGE STYLES
   ========================================= */

.dashboard-section { margin-bottom: 80px; }

/* --- Layout Grid --- */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* --- Sidebar --- */
.dash-sidebar {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    height: fit-content;
}

/* User Brief Profile */
.user-profile-brief {
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 8px 8px 0 0;
}
.user-img {
    width: 80px; height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}
.user-img img { width: 100%; height: 100%; object-fit: cover; }
.user-name h4 { font-size: 1.1rem; margin-bottom: 2px; }
.user-name span { font-size: 0.85rem; color: #888; }

/* Navigation */
.dash-nav { padding: 10px 0; }

.nav-item {
    padding: 15px 25px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    border-left: 3px solid transparent;
    transition: var(--transition);
    display: flex; align-items: center; gap: 10px;
}

.nav-item:hover, .nav-item.active {
    background: #f4f4f4;
    color: var(--dark);
    border-left-color: var(--primary); /* Neon active indicator */
    font-weight: 600;
}
.nav-item i { width: 20px; text-align: center; }

.nav-item.logout a { color: #e74c3c; display: flex; align-items: center; gap: 10px; width: 100%; }
.nav-item.logout:hover { background: #fff0f0; border-left-color: #e74c3c; }


/* --- Main Content --- */
.dash-content {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
}

.content-tab { display: none; animation: fadeIn 0.4s ease; }
.content-tab.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Welcome Msg */
.welcome-msg { margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.welcome-msg h3 { font-size: 1.5rem; margin-bottom: 10px; }
.welcome-msg strong { color: var(--primary); }
.welcome-msg p { color: #666; font-size: 0.95rem; line-height: 1.6; }

/* Stats Grid */
.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px;
}
.stat-card {
    background: #f9f9f9; padding: 20px;
    border-radius: 8px; display: flex; align-items: center; gap: 15px;
    border: 1px solid #eee;
}
.stat-card .icon {
    width: 50px; height: 50px; background: var(--dark); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.stat-card h4 { font-size: 0.9rem; color: #888; font-weight: 400; }
.stat-card span { font-size: 1.5rem; font-weight: 700; color: var(--dark); }

/* Tables */
.table-responsive { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.dash-table th, .dash-table td {
    padding: 15px; border-bottom: 1px solid #eee; text-align: left;
}
.dash-table th { background: #f9f9f9; font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.dash-table td { color: #555; font-size: 0.95rem; }

/* Status Badges */
.badge { padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.badge.process { background: #e0f2fe; color: #0284c7; }
.badge.complete { background: #dcfce7; color: #16a34a; }
.badge.cancel { background: #fee2e2; color: #dc2626; }

.view-btn {
    padding: 6px 15px; background: var(--dark); color: #fff;
    border-radius: 4px; font-size: 0.85rem; border: none; cursor: pointer; transition: 0.3s;
}
.view-btn:hover { background: var(--primary); color: var(--dark); }

/* Addresses */
.desc-text { color: #666; margin-bottom: 25px; }
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.address-box { border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.box-head {
    background: #f9f9f9; padding: 15px 20px; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.box-head h4 { font-size: 1rem; }
.edit-link { color: var(--primary); font-size: 0.9rem; font-weight: 600; }
.box-body { padding: 20px; line-height: 1.6; color: #555; }

/* Account Form */
.account-form .form-row { display: flex; gap: 20px; }
.account-form .form-group { margin-bottom: 20px; width: 100%; }
.account-form label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.account-form input {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; outline: none; transition: 0.3s;
}
.account-form input:focus { border-color: var(--primary); }
.change-pass-title { margin: 30px 0 20px; font-size: 1.1rem; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.account-form .btn-primary { border: none; cursor: pointer; }

/* Responsive */
@media (max-width: 991px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .address-grid { grid-template-columns: 1fr; }
    .dash-sidebar { margin-bottom: 30px; }
    /* Horizontal Scroll Nav on Mobile */
    .dash-nav { display: flex; overflow-x: auto; white-space: nowrap; padding-bottom: 10px; }
    .nav-item { border-left: none; border-bottom: 3px solid transparent; flex: 0 0 auto; }
    .nav-item:hover, .nav-item.active { border-left: none; border-bottom-color: var(--primary); background: transparent; }
}