/**
 * GMB Management System - Main Stylesheet
 * Enterprise Clean Design
 */

/* ========================================
   GLOBAL STYLES
   ======================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    font-size: 14px;
    color: #2c3e50;
}

/* ========================================
   IMPERSONATION ADMIN VIEW BANNER
   ======================================== */

.admin-view-banner {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #e67e22;
    color: #ffffff;
    padding: 12px 8px;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-view-banner:hover {
    right: 0;
    box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.25);
    background: #d35400;
    color: #ffffff;
}

.admin-view-banner i {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    transform: rotate(90deg);
}

.admin-view-tooltip {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #2c3e50;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    writing-mode: horizontal-tb;
}

.admin-view-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #2c3e50;
}

.admin-view-banner:hover .admin-view-tooltip {
    opacity: 1;
    visibility: visible;
    margin-right: 15px;
}

.admin-view-tooltip strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.admin-view-tooltip small {
    display: block;
    opacity: 0.9;
    line-height: 1.5;
}

.admin-view-tooltip .btn {
    margin-top: 10px;
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* Mobile adjustments for admin banner */
@media (max-width: 768px) {
    .admin-view-banner {
        right: 0;
        top: auto;
        bottom: 20px;
        transform: none;
        padding: 10px 6px;
        font-size: 0.8rem;
        border-radius: 6px 0 0 6px;
    }
    
    .admin-view-banner i {
        font-size: 1rem;
        margin-bottom: 6px;
    }
}

/* ========================================
   ACTION ICONS (Sleek minimal icons)
   ======================================== */

.action-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #7f8c8d;
    background: transparent;
    border: 1px solid transparent;
}

.action-icon:hover {
    transform: translateY(-2px);
    color: #2c3e50;
}

.action-icon i {
    font-size: 1rem;
}

/* Edit icon */
.action-icon-edit:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.2);
}

/* Impersonate icon */
.action-icon-impersonate:hover {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
    border-color: rgba(243, 156, 18, 0.2);
}

/* Delete/Remove icon */
.action-icon-delete:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.2);
}

/* View icon */
.action-icon-view:hover {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.2);
}

/* Settings icon */
.action-icon-settings:hover {
    color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
    border-color: rgba(155, 89, 182, 0.2);
}

/* Mobile: slightly larger touch targets */
@media (max-width: 768px) {
    .action-icon {
        width: 36px;
        height: 36px;
    }
    
    .action-icons {
        gap: 10px;
    }
}

/* ========================================
   NAVIGATION BAR
   ======================================== */

.navbar {
    background: #2c3e50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0;
    border-bottom: 3px solid #3498db;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff !important;
    padding: 16px 20px;
}

.navbar-brand i {
    color: #3498db;
    margin-right: 8px;
}

.navbar-nav {
    padding: 0 15px;
}

.nav-link {
    color: #bdc3c7 !important;
    font-size: 0.9rem;
    padding: 16px 15px !important;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link i {
    margin-right: 6px;
}

.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item i {
    margin-right: 8px;
    width: 20px;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */

.main-content {
    padding: 30px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3498db;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.page-header p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.9rem;
}

.page-header .badge {
    font-size: 0.75rem;
    padding: 5px 10px;
    font-weight: 600;
}

/* ========================================
   CARDS
   ======================================== */

.stats-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    border-left: 4px solid;
    height: 100%;
}

.stats-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.stats-card.blue {
    border-left-color: #3498db;
}

.stats-card.green {
    border-left-color: #27ae60;
}

.stats-card.orange {
    border-left-color: #e67e22;
}

.stats-card.purple {
    border-left-color: #9b59b6;
}

.stats-card .stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.stats-card.blue .stats-icon {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.stats-card.green .stats-icon {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.stats-card.orange .stats-icon {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

.stats-card.purple .stats-icon {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.stats-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.stats-card p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.info-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3498db;
}

.info-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.info-card h4 i {
    color: #3498db;
    margin-right: 8px;
}

.info-card p {
    color: #7f8c8d;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-card ul {
    margin: 15px 0;
    padding-left: 20px;
}

.info-card ul li {
    color: #7f8c8d;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

/* ========================================
   PROFILE CARDS
   ======================================== */

.profile-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-left: 4px solid;
}

.profile-card.blue {
    border-left-color: #3498db;
}

.profile-card.green {
    border-left-color: #27ae60;
}

.profile-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.profile-card h3 i {
    margin-right: 8px;
}

/* ========================================
   USER INFO
   ======================================== */

.user-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.user-info-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.user-info-item:last-child {
    border-bottom: none;
}

.user-info-label {
    font-weight: 600;
    color: #7f8c8d;
    width: 150px;
    font-size: 0.85rem;
}

.user-info-value {
    color: #2c3e50;
    font-size: 0.9rem;
}

/* ========================================
   FORMS
   ======================================== */

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.form-control {
    border-radius: 6px;
    border: 1px solid #dce1e6;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: all 0.2s;
    height: 42px;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.input-group-text {
    border-radius: 6px 0 0 6px;
    border: 1px solid #dce1e6;
    border-right: none;
    background: #f8f9fa;
    color: #6c757d;
    padding: 0 14px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 6px 6px 0;
}

.input-group:focus-within .input-group-text {
    border-color: #3498db;
    color: #3498db;
}

.input-group:focus-within .form-control {
    border-left: none;
}

.form-text {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 5px;
}

/* ========================================
   PASSWORD TOGGLE
   ======================================== */

.password-toggle {
    position: relative;
}

.password-toggle .form-control {
    padding-right: 45px;
}

.password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7f8c8d;
    font-size: 1rem;
    transition: color 0.2s;
    z-index: 10;
}

.password-toggle-icon:hover {
    color: #3498db;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-primary {
    background: #3498db;
    border: none;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-login {
    background: #3498db;
    border: none;
    border-radius: 6px;
    padding: 11px;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100%;
    color: white;
    transition: all 0.2s;
    height: 44px;
}

.btn-login:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    color: white;
}

.btn-login:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #95a5a6;
    border: none;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    font-weight: 600;
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    border-radius: 8px;
    border: none;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

.alert-danger {
    background-color: #fee;
    color: #c33;
    border-left: 3px solid #e74c3c;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .main-content {
        padding: 15px 10px;
    }
    
    .page-header {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .page-header h1 {
        font-size: 1.2rem;
    }
    
    .page-header p {
        font-size: 0.8rem;
    }
    
    .stats-card {
        margin-bottom: 10px;
        padding: 15px;
    }
    
    .stats-card .stats-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .stats-card h3 {
        font-size: 1.4rem;
        margin-bottom: 3px;
    }
    
    .stats-card p {
        font-size: 0.8rem;
    }
    
    .profile-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .profile-card h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .user-info-item {
        flex-direction: column;
        padding: 6px 0;
    }
    
    .user-info-label {
        width: 100%;
        margin-bottom: 3px;
        font-size: 0.8rem;
    }
    
    .user-info-value {
        font-size: 0.85rem;
    }
    
    .navbar-brand {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
    
    .nav-link {
        padding: 10px 12px !important;
        font-size: 0.8rem;
    }
    
    .info-card {
        padding: 15px;
    }
    
    .info-card h4 {
        font-size: 1rem;
    }
    
    .info-card p,
    .info-card ul li {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    body {
        padding: 0;
        background-color: #f5f7fa;
    }
    
    body.has-sidebar {
        padding: 0;
    }
    
    .navbar-collapse {
        background: #34495e;
        margin-top: 10px;
        border-radius: 6px;
    }
    
    .main-content {
        padding: 10px 8px;
    }
    
    .page-header {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .page-header h1 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .page-header p {
        font-size: 0.75rem;
    }
    
    .stats-card {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .stats-card .stats-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .stats-card h3 {
        font-size: 1.3rem;
    }
    
    .stats-card p {
        font-size: 0.75rem;
    }
    
    .profile-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .profile-card h3 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .user-info {
        padding: 10px;
    }
    
    .form-control {
        font-size: 0.85rem;
        height: 38px;
        padding: 8px 12px;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .form-label {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .form-text {
        font-size: 0.75rem;
    }
    
    .alert {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* ========================================
   SIDEBAR NAVIGATION
   ======================================== */

/* Body with sidebar layout */
body.has-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.layout-wrapper {
    display: flex;
    flex: 1;
    position: relative;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e0e4e8;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 56px;
    bottom: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e0e4e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.sidebar-header h5 i {
    margin-right: 8px;
    color: #3498db;
}

.sidebar-toggle-close {
    background: none;
    border: none;
    color: #7f8c8d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.sidebar-toggle-close:hover {
    color: #e74c3c;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 15px 0;
    overflow-y: auto;
}

.sidebar-link {
    display: flex !important;
    align-items: center !important;
    padding: 12px 20px;
    color: #5a6c7d !important;
    text-decoration: none !important;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-link i {
    width: 20px;
    min-width: 20px;
    margin-right: 12px;
    font-size: 1rem;
    text-align: center;
    display: inline-block;
}

.sidebar-link:hover {
    background: #f8f9fa !important;
    color: #3498db !important;
    border-left-color: #3498db;
    text-decoration: none !important;
}

.sidebar-link.active {
    background: #e8f4fd !important;
    color: #3498db !important;
    border-left-color: #3498db;
    font-weight: 600;
    text-decoration: none !important;
}

.sidebar-link-danger:hover {
    background: #fee !important;
    color: #e74c3c !important;
    border-left-color: #e74c3c;
    text-decoration: none !important;
}

.sidebar-link span {
    display: inline-block;
    line-height: 1.5;
}

/* Sidebar Section Title */
.sidebar-section-title {
    padding: 15px 20px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #95a5a6;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.sidebar-section-title i {
    margin-right: 6px;
    font-size: 0.7rem;
    display: inline-block;
}

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    background: #e0e4e8;
    margin: 15px 20px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 15px;
    border-top: 1px solid #e0e4e8;
    background: #f8f9fa;
}

/* Token Balance Display */
.sidebar-token-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar-token-balance.token-low {
    background: #fff5f5;
    border-color: #dc3545;
}

.token-balance-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar-token-balance.token-low .token-balance-icon {
    background: #dc3545;
}

.token-balance-icon i {
    font-size: 1rem;
    color: #3498db;
}

.sidebar-token-balance.token-low .token-balance-icon i {
    color: #ffffff;
}

.token-balance-info {
    flex: 1;
    min-width: 0;
}

.token-balance-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
    margin-bottom: 2px;
}

.sidebar-token-balance.token-low .token-balance-label {
    color: #dc3545;
}

.token-balance-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.sidebar-token-balance.token-low .token-balance-amount {
    color: #dc3545;
}

.sidebar-footer-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-footer-user > i {
    font-size: 2rem;
    color: #3498db;
}

.sidebar-footer-info {
    flex: 1;
    min-width: 0;
}

.sidebar-footer-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer-role {
    margin-top: 3px;
}

.sidebar-footer-role .badge {
    font-size: 0.7rem;
    padding: 3px 8px;
}

/* Main Content with Sidebar */
.content-wrapper {
    flex: 1;
    margin-left: 260px;
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Adjust main content padding when sidebar is present */
.has-sidebar .main-content {
    padding: 30px 25px;
}

/* Sidebar Toggle Button for Mobile */
.sidebar-toggle-mobile {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.2s;
}

.sidebar-toggle-mobile:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.sidebar-toggle-mobile i {
    font-size: 1.2rem;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        top: 0;
        box-shadow: 4px 0 8px rgba(0, 0, 0, 0.15);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .content-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    body.sidebar-open {
        overflow: hidden;
    }
    
    .navbar {
        z-index: 1001;
    }
}

/* Tablet - Compact sidebar */
@media (max-width: 991px) and (min-width: 768px) {
    .sidebar {
        width: 240px;
    }
    
    .sidebar-link {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .sidebar-header {
        padding: 15px;
    }
    
    .sidebar-section-title {
        padding: 12px 15px 8px;
        font-size: 0.7rem;
    }
    
    .sidebar-footer {
        padding: 12px;
    }
    
    .sidebar-token-balance {
        padding: 8px;
        gap: 8px;
    }
    
    .token-balance-icon {
        width: 28px;
        height: 28px;
    }
    
    .token-balance-label {
        font-size: 0.65rem;
    }
    
    .token-balance-amount {
        font-size: 1rem;
    }
    
    .sidebar-footer-user > i {
        font-size: 1.8rem;
    }
}

/* Mobile - Compact sidebar */
@media (max-width: 767px) {
    .sidebar {
        width: 280px;
        max-width: 80vw;
    }
    
    .sidebar-header {
        padding: 12px 15px;
    }
    
    .sidebar-header h5 {
        font-size: 0.9rem;
    }
    
    .sidebar-link {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .sidebar-link i {
        width: 18px;
        font-size: 0.9rem;
        margin-right: 10px;
    }
    
    .sidebar-section-title {
        padding: 10px 15px 8px;
        font-size: 0.7rem;
    }
    
    .sidebar-divider {
        margin: 10px 15px;
    }
    
    .sidebar-footer {
        padding: 10px;
    }
    
    .sidebar-token-balance {
        padding: 8px;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .token-balance-icon {
        width: 28px;
        height: 28px;
    }
    
    .token-balance-icon i {
        font-size: 0.9rem;
    }
    
    .token-balance-label {
        font-size: 0.6rem;
    }
    
    .token-balance-amount {
        font-size: 0.95rem;
    }
    
    .sidebar-footer-user {
        gap: 8px;
    }
    
    .sidebar-footer-user > i {
        font-size: 1.5rem;
    }
    
    .sidebar-footer-name {
        font-size: 0.8rem;
    }
    
    .sidebar-footer-role .badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}

/* Desktop - Hide mobile toggle */
@media (min-width: 992px) {
    .sidebar-toggle-mobile {
        display: none;
    }
}

/* Tablet adjustments */
@media (max-width: 1200px) and (min-width: 992px) {
    .sidebar {
        width: 220px;
    }
    
    .content-wrapper {
        margin-left: 220px;
    }
}

/* Mobile Optimizations for Forms and Settings */
@media (max-width: 768px) {
    .settings-section {
        padding: 12px;
    }
    
    .settings-section-title {
        font-size: 0.85rem;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .input-group-text {
        padding: 0 10px;
        font-size: 0.9rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 3px 7px;
    }
}

@media (max-width: 576px) {
    .settings-section {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .settings-section-title {
        font-size: 0.8rem;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
    
    .input-group-text {
        padding: 0 8px;
        font-size: 0.85rem;
    }
    
    .input-group .btn {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .password-toggle-icon {
        right: 10px;
        font-size: 0.9rem;
    }
    
    .navbar {
        padding: 0;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .navbar-brand i {
        font-size: 1rem;
    }
    
    .dropdown-menu {
        font-size: 0.85rem;
    }
    
    .dropdown-item {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    /* Compact row spacing */
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .row > * {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* ========================================
   APP FOOTER
   ======================================== */

.app-footer {
    background-color: #ffffff;
    border-top: 1px solid #e1e8ed;
    padding: 15px 0;
    margin-top: auto;
    font-size: 0.85rem;
    color: #6c757d;
    width: 100%;
}

.app-footer p {
    margin: 0;
}

.app-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.app-footer a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.version-badge {
    display: inline-block;
    background-color: #f8f9fa;
    color: #495057;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

/* Main content should grow to push footer down */
.main-content {
    flex: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .app-footer {
        padding: 12px 0;
        font-size: 0.8rem;
    }
    
    .app-footer .col-md-6 {
        margin-bottom: 8px;
    }
    
    .app-footer .col-md-6:last-child {
        margin-bottom: 0;
    }
    
    .version-badge {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}

