* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #2C2C2C;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #F8C644;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    color: #FFFFFF;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    font-size: 0.95em;
}

input[type="tel"],
input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

input[type="tel"]:focus,
input[type="file"]:focus {
    outline: none;
    border-color: #F8C644;
}

small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}

.file-preview {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.preview-header {
    margin-bottom: 10px;
    color: #555;
}

.file-list {
    list-style: none;
}

.file-list li {
    padding: 8px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
}

.file-list li:last-child {
    border-bottom: none;
}

.file-name {
    font-weight: 500;
    color: #333;
}

.file-size {
    color: #999;
    font-size: 0.9em;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: #F8C644;
    color: #2C2C2C;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(248, 198, 68, 0.4);
    background: #FDD35C;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #F8C644, #FDD35C);
    animation: progress 1.5s infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.results {
    margin-top: 30px;
    padding: 25px;
    border-radius: 8px;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results.success {
    background: #d4edda;
    border: 2px solid #28a745;
}

.results.error {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.results h3 {
    margin-bottom: 15px;
    color: inherit;
}

.results .message {
    font-size: 1.05em;
    margin: 10px 0;
}

.gallery-link {
    display: inline-block;
    padding: 10px 20px;
    background: #F8C644;
    color: #2C2C2C;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 10px;
    transition: background 0.3s;
    font-weight: 600;
}

.gallery-link:hover {
    background: #FDD35C;
}

.result-section {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.result-section h4 {
    margin-bottom: 10px;
    color: #333;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.result-table th,
.result-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.result-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-real {
    background: #d4edda;
    color: #155724;
}

.badge-ai {
    background: #f8d7da;
    color: #721c24;
}

.badge-unknown {
    background: #fff3cd;
    color: #856404;
}

.reason {
    color: #dc3545;
    font-size: 0.9em;
}

footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .card {
        padding: 25px;
    }

    header h1 {
        font-size: 2em;
    }

    .result-table {
        font-size: 0.85em;
    }

    .result-table th,
    .result-table td {
        padding: 8px 5px;
    }
}

