/* QR Reader Modern Interface Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header */
.qr-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 3px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.qr-header img {
    max-height: 60px;
    width: auto;
}

/* Main Container */
.qr-container {
    /*flex: 1;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
}

.qr-scanner-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 30px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.qr-title {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qr-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* QR Reader Area */
#reader {
    margin: 20px auto;
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

/* Status Messages */
.status-message {
    padding: 15px;
    border-radius: 15px;
    margin: 20px 0;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Input Field */
.qr-input-group {
    margin: 20px 0;
}

.qr-input-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 18px;
    text-align: center;
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.qr-input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

/* Buttons */
.btn-qr {
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin: 10px;
}

.btn-qr:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.btn-qr:active {
    transform: translateY(0);
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-success-gradient {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-qr:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Response Screens */
.response-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.response-screen.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.response-content {
    text-align: center;
    padding: 60px;
    margin: 0 20px;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.response-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.response-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.response-subtitle {
    font-size: 18px;
    font-weight: 600;
    opacity: 0.9;
}

.response-code {
    font-size: 28px;
    font-weight: 700;
    margin-top: 25px;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

/* Success Screen (Green) */
.response-screen.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.response-screen.success .response-content {
    background: rgba(255, 255, 255, 0.95);
    color: #11998e;
}

/* Error Screen (Red) */
.response-screen.error {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.response-screen.error .response-content {
    background: rgba(255, 255, 255, 0.95);
    color: #eb3349;
}

/* Warning Screen (Yellow/Orange) */
.response-screen.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.response-screen.warning .response-content {
    background: rgba(255, 255, 255, 0.95);
    color: #f5576c;
}

.response-screen.expired {
    background: linear-gradient(135deg, #fa8c16 0%, #faad14 100%);
}

.response-screen.expired .response-content {
    background: rgba(255, 255, 255, 0.95);
    color: #fa8c16;
}

/* Footer */
.qr-footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.qr-footer p {
    margin: 5px 0;
    font-size: 14px;
}

.qr-footer a {
    color: #bfeb8f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.qr-footer a:hover {
    color: #38ef7d;
}

/* Responsive */
@media (max-width: 768px) {
    .qr-scanner-box {
        padding: 25px;
        margin: 0 10px;
    }

    .qr-title {
        font-size: 22px;
    }

    .response-title {
        font-size: 28px;
    }

    .response-content {
        padding: 40px 30px;
    }

    .btn-qr {
        padding: 15px 30px;
        font-size: 16px;
    }
}
