/**
 * Stiluri pentru aplicația OCR CIV
 */

* {
    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;
    padding: 20px;
    color: #333;
}

.container, .mobile-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

main {
    padding: 30px;
}

.qr-section, .status-section, .upload-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

h3 {
    color: #764ba2;
    margin: 20px 0 10px 0;
}

.qr-container {
    text-align: center;
    margin: 30px 0;
}

.qr-code {
    border: 5px solid #667eea;
    border-radius: 15px;
    padding: 15px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.instruction {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    line-height: 1.8;
}

.status-box {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2em;
}

.status-waiting {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
}

.status-processing {
    background: #d1ecf1;
    border: 2px solid #17a2b8;
    color: #0c5460;
    padding: 15px;
    border-radius: 8px;
}

.status-success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
}

.status-error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
}

.json-result {
    background: #272822;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 15px 0;
}

button, .btn-secondary, .btn-camera, .btn-upload {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover, .btn-secondary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

button:active, .btn-secondary:active {
    transform: translateY(0);
}

footer {
    background: #f1f3f5;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

footer code {
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #667eea;
}

.tech-info {
    margin-top: 10px;
    font-size: 0.9em;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    main {
        padding: 15px;
    }
    
    .qr-section, .status-section, .upload-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 1.4em;
    }
    
    .qr-code {
        max-width: 100%;
        height: auto;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Highlight pentru elemente importante */
strong {
    color: #667eea;
}

/* Spacing pentru liste */
ul, ol {
    margin-left: 20px;
    line-height: 1.8;
}

/* Link style */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}
