* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 800px;
    width: 90%;
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

h2 {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.scanner-container {
    position: relative;
    margin-bottom: 2rem;
}

#video {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    border: 3px solid #007bff;
}

#loading {
    font-size: 1.2rem;
    color: #666;
    margin: 2rem 0;
}

#result {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    font-size: 1.1rem;
    word-break: break-all;
}

.qr-display {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

#qrContent {
    font-size: 1.2rem;
    color: #333;
    font-family: monospace;
    word-break: break-all;
    background: white;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.buttons-container {
    margin-bottom: 2rem;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    min-height: 60px;
}

.action-btn[data-action="approve"] {
    background: #28a745;
}

.action-btn[data-action="reject"] {
    background: #dc3545;
}

.action-btn[data-action="review"] {
    background: #ffc107;
    color: #212529;
}

.action-btn[data-action="hold"] {
    background: #6c757d;
}

.action-btn[data-action="complete"] {
    background: #17a2b8;
}

.action-btn[data-action="cancel"] {
    background: #6f42c1;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.action-btn:active {
    transform: translateY(0);
}

#startButton, #scanAgain {
    background: #007bff;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    margin: 1rem;
    transition: background 0.3s ease;
}

#startButton:hover, #scanAgain:hover {
    background: #0056b3;
}

.controls {
    margin-top: 2rem;
}

#status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    font-weight: bold;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-sending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Tablet optimizations */
@media (min-width: 768px) {
    .container {
        padding: 3rem;
    }
    
    .button-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .action-btn {
        padding: 1.5rem 2rem;
        font-size: 1.3rem;
        min-height: 80px;
    }
}