/* Custom styles for MenuQR */

:root {
    --primary-gradient: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --success-gradient: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    --warning-gradient: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    --danger-gradient: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
}

/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* Main Content Spacing */
.main-content {
    padding-top: 80px; /* Space for fixed navbar + extra breathing room */
    margin-top: 0;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

/* Cards */
.card {
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Dashboard Styles */
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.stats-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* QR Code Styles */
.qr-code-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.qr-code img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Menu Item Styles */
.menu-item-card {
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.menu-item-card:hover {
    border-left-color: #0056b3;
    transform: translateX(5px);
}

/* File Upload */
.custom-file-upload {
    border: 2px dashed #007bff;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    background: rgba(0,123,255,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-file-upload:hover {
    background: rgba(0,123,255,0.1);
    border-color: #0056b3;
}

.custom-file-upload input[type="file"] {
    display: none;
}

/* Badge Styles */
.badge-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.badge-active {
    background-color: #d4edda;
    color: #155724;
}

.badge-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-processing {
    background-color: #fff3cd;
    color: #856404;
}

/* Table Styles */
.table-custom {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.table-custom thead {
    background: var(--primary-gradient);
    color: white;
}

.table-custom tbody tr:hover {
    background-color: rgba(0,123,255,0.05);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,123,255,0.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .custom-file-upload {
        padding: 2rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #343a40;
        color: white;
    }
    
    .form-control {
        background-color: #495057;
        border-color: #6c757d;
        color: white;
    }
    
    .form-control:focus {
        background-color: #495057;
        border-color: #80bdff;
        color: white;
    }
}

/* 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-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utility Classes */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.shadow-hover:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.border-radius-lg {
    border-radius: 15px;
}

.border-radius-xl {
    border-radius: 20px;
} 