/* Custom CSS for Yenepoya Food Order System */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Navbar customization */
.navbar-brand {
    font-weight: bold;
}

/* Card customization */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: rgba(13, 110, 253, 0.05);
    font-weight: 500;
}

/* Form styling */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button customization */
.btn {
    border-radius: 0.25rem;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Table styling */
.table thead th {
    background-color: rgba(13, 110, 253, 0.05);
    font-weight: 600;
}

/* Dashboard cards */
.stat-card {
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .card-body {
    padding: 1.25rem;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

/* QR code container */
.qr-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Dashboard icons */
.dashboard-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Responsive styles */
@media (max-width: 768px) {
    .card-text {
        font-size: 0.9rem;
    }
    
    .dashboard-icon {
        font-size: 2rem;
    }
}

/* Auth pages */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 300px);
}

.auth-card {
    width: 100%;
    max-width: 500px;
}

/* QR Scanner */
.scanner-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

#scanner-container {
    width: 100%;
    background-color: #f8f9fa;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

/* Status badges */
.status-pending {
    background-color: var(--warning-color);
}

.status-approved {
    background-color: var(--success-color);
}

.status-rejected {
    background-color: var(--danger-color);
}

.status-completed {
    background-color: var(--secondary-color);
}