/* Custom styles for The Chocolate Factory */

.timer-display {
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    font-weight: bold;
    color: var(--bs-primary);
}

.max-display-image {
    max-height: 60vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Ensure split screen takes full height */
.vh-100 {
    height: 100vh;
}

/* Image upload preview */
.image-preview {
    max-width: 200px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

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

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

/* Animation for image transitions */
.fade-transition {
    transition: opacity 0.3s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timer-display {
        font-size: 2rem;
    }
    
    .max-display-image {
        max-height: 40vh;
    }
    
    .w-50 {
        width: 100% !important;
    }
    
    .container-fluid .d-flex {
        flex-direction: column;
    }
}

/* Custom button hover effects */
.btn-outline-success:hover {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

.btn-outline-danger:hover {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
}

/* Loading spinner for images */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--bs-primary);
    animation: spin 1s ease-in-out infinite;
}

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

/* Enhanced card styling */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease-in-out;
}

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

/* Form styling improvements */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Navigation improvements */
.navbar-brand {
    font-weight: bold;
}

.navbar-brand i {
    color: var(--bs-warning);
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 8px;
}

/* Modal improvements */
.modal-content {
    border: none;
    border-radius: 12px;
}

/* Table styling for admin panel */
.table-dark {
    --bs-table-bg: transparent;
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
}
