html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Mobile App Styles */
.mobile-app {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.mobile-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-main {
    padding: 1rem 0;
    min-height: calc(100vh - 140px);
}

.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mobile-footer {
    background-color: #343a40;
    color: white;
    padding: 1rem 0;
    position: sticky;
    bottom: 0;
}

/* Card Styles */
.mobile-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 1rem;
    overflow: hidden;
}

.mobile-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem;
}

.mobile-card .card-body {
    padding: 1.5rem;
}

/* Button Styles */
.btn-mobile {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary-mobile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-success-mobile {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    border: none;
}

.btn-warning-mobile {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
}

/* Form Styles */
.mobile-form {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control-mobile {
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-mobile:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Navigation Styles */
.navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.dashboard-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-card .title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.dashboard-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

/* QR Scanner Styles */
.qr-scanner-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.qr-scanner-icon {
    font-size: 8rem;
    color: #667eea;
    margin-bottom: 2rem;
}

/* Product Detail Styles */
.product-detail-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.product-detail-body {
    padding: 2rem;
}

.product-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.product-info-item:last-child {
    border-bottom: none;
}

.product-info-label {
    font-weight: 600;
    color: #495057;
}

.product-info-value {
    color: #667eea;
    font-weight: 500;
}

/* Station Management Styles */
.station-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #667eea;
}

.station-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.station-status.active {
    background-color: #d4edda;
    color: #155724;
}

.station-status.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

/* Report Styles */
.report-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.report-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.report-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-main {
        padding: 0.5rem;
    }
    
    .mobile-form {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .dashboard-card {
        margin-bottom: 1rem;
    }
    
    .qr-scanner-container {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .product-detail-card {
        margin: 0.5rem;
    }
    
    .report-card {
        padding: 1.5rem;
        margin: 0.5rem 0.5rem 1rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .mobile-form {
        padding: 1rem;
        margin: 0.25rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
    
    .qr-scanner-icon {
        font-size: 6rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}