/* Receipt Review CSS */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header Styles */
header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-description {
    color: #6c757d;
    margin-bottom: 20px;
    font-style: italic;
}

/* Upload Area Styles */
.upload-area {
    margin-bottom: 20px;
}

#receipt-image {
    display: none;
}

.upload-label {
    display: block;
    border: 3px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.upload-label:hover {
    border-color: #3498db;
    background: #e3f2fd;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.upload-hint {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Location Selector */
.location-selector {
    margin-bottom: 15px;
}

.location-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

#storage-location {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

#storage-location:focus {
    outline: none;
    border-color: #3498db;
}

/* Manual Entry Form */
.manual-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-row input, .form-row select {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-row input:focus, .form-row select:focus {
    outline: none;
    border-color: #3498db;
}

.full-width {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    margin-top: 10px;
}

/* Button Styles */
.primary-btn, .secondary-btn, .success-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.primary-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.secondary-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.3);
}

.success-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.success-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.success-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Product Cards */
.products-container {
    display: grid;
    gap: 15px;
}

.product {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    position: relative;
}

.product:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-field {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-field label {
    min-width: 100px;
    font-weight: 600;
    color: #495057;
}

.product-field input, .product-field select {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.product-field input:focus, .product-field select:focus {
    outline: none;
    border-color: #3498db;
}

.confidence-score {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Summary Stats */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat {
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Status Messages */
.status-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
}

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

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

.status-info {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row input, .form-row select {
        min-width: auto;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
}

.product:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product div {
    margin: 10px 0;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.product input {
    margin-left: 10px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    flex: 1;
    transition: border-color 0.3s ease;
}

.product input:focus {
    outline: none;
    border-color: #3498db;
}

.product input[type="number"] {
    max-width: 100px;
}

#approve-button {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin: 30px auto 0;
    transition: all 0.3s ease;
}

#approve-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

#approve-button:active {
    transform: translateY(0);
}

/* Status indicators */
.confidence-high {
    color: #27ae60;
    font-weight: bold;
}

.confidence-medium {
    color: #f39c12;
    font-weight: bold;
}

.confidence-low {
    color: #e74c3c;
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    .product div {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product input {
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
    }
}
