/* HugeVox Custom Styles */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.min-vh-100 {
    background-color: #f8f9fa;
}

/* Remove any borders from headings */
h1, h2, h3, h4, h5, h6 {
    border: none !important;
    outline: none !important;
}

/* Ensure display headings have no borders */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    border: none !important;
    outline: none !important;
}

/* Card hover effects */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* QR Code styling */
.qr-code-container img {
    border: 3px solid #f8f9fa;
    padding: 10px;
    background: white;
}

/* QR Code Full-Screen Popup */
.qr-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
}

.qr-popup-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: default;
}

.qr-popup-image {
    max-width: 80vmin;
    max-height: 80vmin;
    width: auto;
    height: auto;
    border: 8px solid white;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

@media (max-width: 576px) {
    .qr-popup-image {
        max-width: 85vw;
        max-height: 85vw;
        border: 4px solid white;
        border-radius: 12px;
    }
}

/* Blazor error UI improvements */
#blazor-error-ui {
    background: #ffcccc;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 3px solid #dc3545;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #721c24;
    text-decoration: none;
}

#blazor-error-ui .dismiss:hover {
    color: #491217;
}

/* Pulsing animation for live indicator */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(25, 135, 84, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

.spinner-grow {
    animation: pulse 2s infinite;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .qr-code-container img {
        max-width: 200px !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Button improvements */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

/* Input group improvements */
.input-group .form-control {
    font-size: 0.9rem;
}

.font-monospace {
    font-family: 'Courier New', Courier, monospace;
}

/* Card enhancements */
.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    border-bottom: 0;
    font-weight: 600;
}

/* Alert enhancements */
.alert {
    border-radius: 8px;
    border: none;
}

/* Navbar enhancements */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.25rem;
}

/* Footer styling */
footer {
    font-size: 0.875rem;
}

/* Loading animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Status badges */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print styles */
@media print {
    .navbar, footer, .btn {
        display: none;
    }
}
