* {
    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 {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 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.1em;
    opacity: 0.95;
}

main {
    padding: 40px 30px;
}

.upload-section {
    margin-bottom: 50px;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-area:hover {
    border-color: #764ba2;
    background: #f0f2ff;
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: #4CAF50;
    background: #e8f5e9;
    transform: scale(1.02);
}

.upload-area.file-selected {
    border-color: #4CAF50;
    background: #e8f5e9;
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 1.3em;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}

.upload-text-secondary {
    font-size: 1em;
    color: #999;
    margin-bottom: 20px;
}

.upload-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

#imageFile {
    display: none;
}

.file-info {
    margin-top: 20px;
    font-size: 0.95em;
    color: #666;
    font-weight: 500;
}

.upload-preview {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    object-fit: contain;
}

#previewContainer {
    text-align: center;
    padding: 20px;
}

.remove-preview-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(244, 67, 54, 0.3);
}

.remove-preview-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.5);
}

#uploadPlaceholder {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.info-section {
    margin-top: 50px;
}

.info-section h2 {
    text-align: center;
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2em;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.feature-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

footer {
    background: #f8f9ff;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

/* Results Page Styles */
.results-container {
    padding: 40px 30px;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h1 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.back-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

.image-preview-section {
    text-align: center;
    margin-bottom: 40px;
}

.image-preview {
    max-width: 100%;
    max-height: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.analysis-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.result-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-label {
    font-weight: 600;
    color: #555;
    display: inline-block;
    min-width: 150px;
}

.result-value {
    color: #333;
    word-break: break-word;
}

.exif-section {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.exif-section h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.exif-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.exif-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid #4CAF50;
}

.exif-label {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.exif-value {
    color: #333;
    font-size: 1em;
}

.no-exif {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #c62828;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #4CAF50;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .upload-area {
        padding: 40px 15px;
    }

    .upload-icon {
        font-size: 3em;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .analysis-results {
        grid-template-columns: 1fr;
    }

    .exif-data {
        grid-template-columns: 1fr;
    }

    main {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header {
        padding: 30px 20px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .subtitle {
        font-size: 0.9em;
    }
}

