/* DAVA Lageroptælling - Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    padding: 20px;
    background: #f5f5f5;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

h1 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 24px;
}

.stats {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.scan-result {
    background: #e3f2fd;
    border: 2px solid #2196F3;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.scan-result .scan-type {
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 10px;
}

.scan-result .batch-info {
    background: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 14px;
}

.scan-result .batch-info strong {
    color: #f57c00;
}

.search-box {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.search-box:focus {
    outline: none;
    border-color: #4CAF50;
}

.btn-camera {
    padding: 15px 20px;
    font-size: 24px;
    background: #2196F3;
    color: white;
    border: 2px solid #1976d2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-camera:hover {
    background: #1976d2;
    transform: scale(1.05);
}

.btn-camera:active {
    transform: scale(0.95);
}

.product-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

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

.product-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.count-input {
    width: 100%;
    padding: 12px;
    font-size: 20px;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    margin-top: 10px;
}

.count-input:focus {
    outline: none;
    border-color: #45a049;
}

.btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn:hover {
    background: #45a049;
}

.btn:active {
    transform: scale(0.98);
}

.btn-export {
    background: #2196F3;
}

.btn-export:hover {
    background: #0b7dda;
}

.success {
    color: #155724;
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    animation: fadeIn 0.3s;
}

.error {
    color: #721c24;
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
}

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

/* Mobile optimizations */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 20px;
    }

    .search-box {
        font-size: 16px;
    }
}
