/* ThaiMJ QR Custom Styles */

:root {
    --primary-color: #28a745;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    font-family: 'Sarabun', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

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

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #f0f0f0;
    font-weight: bold;
}

.btn {
    border-radius: 6px;
    padding: 8px 16px;
}

.table {
    background: white;
}

.footer {
    margin-top: auto;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Alert styles */
.alert {
    border-radius: 6px;
    border: none;
}

/* Badge styles */
.badge {
    padding: 6px 12px;
    font-weight: 500;
}

/* Form styles */
.form-control, .form-select {
    border-radius: 6px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Stat cards */
.card.bg-primary, .card.bg-success, .card.bg-info, 
.card.bg-warning, .card.bg-danger, .card.bg-secondary {
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card.bg-primary .card-body, .card.bg-success .card-body, 
.card.bg-info .card-body, .card.bg-warning .card-body,
.card.bg-danger .card-body, .card.bg-secondary .card-body {
    padding: 20px;
}

/* Responsive table */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

/* List group */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Print preview */
.label-preview {
    transition: transform 0.2s;
}

.label-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .label-grid {
        grid-template-columns: 1fr;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 10px 20px;
    }
}
