/* Scout Elegant App Design System */
:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --text-main: #2c3e50;
    --text-light: #95a5a6;
    --danger: #e74c3c;
    --radius: 16px;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-body);
}

#scout-pwa-app {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    color: var(--text-main);
    padding-bottom: 80px;
    min-height: 100vh;
}

/* --- Elegant Header --- */
.app-header-elegant {
    background: var(--bg-card);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.app-header-elegant .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.app-header-elegant .actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.2s;
}

.action-btn:active {
    transform: scale(0.95);
    background: #e0e0e0;
}

.action-btn .dashicons {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

/* --- Side Menu (With Text) --- */
.side-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 2000;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.side-menu.open {
    right: 0;
}

.side-menu .menu-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    width: 100%;
}

.side-menu .close-menu {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 2rem;
    text-decoration: none;
    color: #333;
    line-height: 1;
}

.side-menu .avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.menu-links li {
    margin-bottom: 15px;
}

.menu-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    background: var(--bg-body);
    font-weight: 600;
    width: auto;
    height: auto;
    justify-content: flex-start;
}

.menu-links a:hover {
    background: #eee;
}

.menu-links a .dashicons {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

/* --- Content --- */
.elegant-container {
    padding: 25px;
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border: none;
}

/* --- Bottom Nav --- */
.elegant-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--primary);
    border-radius: 40px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.3);
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: 0.3s;
    font-size: 0.75rem;
    gap: 2px;
}

.nav-item .icon {
    font-size: 1.5rem;
    height: 1.5rem;
    width: 1.5rem;
    display: block;
    margin-bottom: 2px;
}

.nav-item.active {
    color: #fff;
    transform: translateY(-2px);
}

.nav-item.active .icon {
    opacity: 1;
}

.nav-item.active .label {
    font-weight: 700;
}

/* Dashboard Widgets Update */
.id-card-widget {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
}

.id-card-widget::before {
    display: none;
}

.id-card-widget h4 {
    color: rgba(255, 255, 255, 0.9);
}

.id-card-widget .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.balance-display .amount {
    color: white;
}

.balance-display .currency {
    color: rgba(255, 255, 255, 0.7);
}

/* Menu Grid */
.menu-item {
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    aspect-ratio: auto;
}

.menu-item .icon {
    font-size: 2.5rem;
    margin-bottom: 5px;
    line-height: 1;
}

.menu-item span:last-child {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

/* Utilities */
.w-100 {
    width: 100%;
}

.w-50 {
    width: 49%;
}

.btn {
    padding: 15px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-align: center;
    width: 100%;
    display: block;
    text-decoration: none;
    transition: 0.3s;
}

.btn-action {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.form-control {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #eee;
    background: #fdfdfd;
    border-radius: 12px;
    font-size: 1rem;
    color: #333;
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
}

/* Login */
.scout-login-wrapper {
    background: var(--bg-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 40px 30px;
    width: 90%;
    max-width: 350px;
}

.login-box h3 {
    margin-top: 0;
    color: var(--primary);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.login-box input {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 15px;
    text-align: start;
}

.login-box .button-primary {
    background: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    width: 100%;
    font-weight: bold;
}

/* --- Facebook Style Profile --- */
.view-profile.facebook-style {
    background: #f0f2f5;
    min-height: 100vh;
    padding-bottom: 20px;
}

.profile-header {
    background: #fff;
    padding-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.cover-photo {
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.avatar-container {
    width: 120px;
    height: 120px;
    margin: -60px auto 10px;
    position: relative;
    border-radius: 50%;
    padding: 4px;
    background: #fff;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}

.change-photo-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    background: #dfe3ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    border: 2px solid #fff;
}

.profile-name {
    margin: 5px 0;
    font-size: 1.5rem;
    color: #1c1e21;
}

.profile-role {
    color: #65676b;
    font-size: 0.95rem;
}

/* Profile Details Card */
.profile-details {
    margin: 10px 15px;
    padding: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 600;
    color: #65676b;
}

.detail-row .value {
    color: #1c1e21;
    font-weight: 500;
}

.detail-row .value.balance {
    color: var(--accent);
    font-weight: 700;
}

/* QR Section */
.qr-section {
    margin: 15px;
    text-align: center;
}

.qr-section h4 {
    margin-top: 0;
    color: #65676b;
}

.qr-box img {
    max-width: 180px;
    border-radius: 10px;
    border: 4px solid #f0f2f5;
}

.profile-actions {
    padding: 0 15px;
    margin-bottom: 30px;
}