/* mobile_app.css - Enhanced for better responsive design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', system-ui, sans-serif;
    background: #f5f7fb;
}

/* Admin Layout Fixes */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a2632 0%, #2c3e50 100%);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s;
}

.admin-content {
    flex: 1;
    margin-left: 280px;
    padding: 20px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .admin-sidebar {
        left: -280px;
        position: fixed;
        z-index: 1000;
    }
    
    .admin-sidebar.show {
        left: 0;
    }
    
    .admin-content {
        margin-left: 0;
        padding: 15px;
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 500;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.stat-label {
    color: #7f8c8d;
    margin: 5px 0 0;
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Table Styles */
.table-responsive {
    border-radius: 15px;
    overflow-x: auto;
}

.table {
    background: white;
    border-radius: 15px;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 10px;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
}

.form-control:focus, .form-select:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230,126,34,0.1);
}

/* Bottom Navigation (for branch users) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0 15px;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.08);
    border-radius: 25px 25px 0 0;
    z-index: 1000;
}

.nav-item {
    text-align: center;
    flex: 1;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.75rem;
}

.nav-item i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}

.nav-item.active {
    color: #e67e22;
}

/* App Container for non-admin pages */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    background: #f5f7fb;
    min-height: 100vh;
}

.app-header {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2632 100%);
    color: white;
    padding: 20px;
    border-radius: 0 0 25px 25px;
    margin-bottom: 20px;
}