﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, Arial, sans-serif;
    background: #f4f7fb;
    color: #1c2434;
}

.header {
    background: url(main-bg.jpg) center center;
    box-shadow: 0 2px 16px rgba(0,0,0,.08);    
}

    .header .cnt {
        height: 100px;
        max-width: 1100px;
        margin: 0 auto 0;
        padding: 0 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.nav {
    display: flex;
    gap: 32px;
}

    .nav a {
        color: black;
        text-decoration: none;
        font-size: 16px;        
    }

        .nav a:hover {
            color: orange;
        }

.hero {
    max-width: 1100px;
    margin: 50px auto 30px;
    padding: 0 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: rgba(16,185,129,.12);
    color: #059669;
    border: 1px solid rgba(16,185,129,.2);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 24px;
    font-weight: 600;
}

h1 {
    font-size: 46px;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 16px;
}

.subtitle {
    color: #64748b;
    font-size: 18px;
    line-height: 1.4;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
}

.upload-card {
    background: white;
    border-radius: 28px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(15,23,42,.08);
    border: 1px solid #e2e8f0;
}

.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 24px;
    background: #f8fafc;
    padding: 70px 30px;
    text-align: center;
    cursor: pointer;
    transition: .3s;
}

    .drop-zone:hover {
        border-color: #246fa7;
        background: #eff6ff;
    }

    .drop-zone.dragover {
        border-color: #2563eb;
        background: #dbeafe;
    }

.uploaded {
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    background: #f8fafc;
    padding: 70px 30px;
    text-align: center;    
    display: none;
}

.upload-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.drop-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.drop-text {
    color: #64748b;
    margin-bottom: 30px;
}

.btn {
    border: none;
    background: #246fa7;
    color: white;
    padding: 16px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

    .btn:hover {
        background: #ff802c;
        transform: translateY(-1px);
    }

#fileInput {
    display: none;
}

.loading {
    display: none;
    text-align: center;
    padding: 35px 0;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    margin: auto;
    animation: spin .9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result {
    display: none;
    margin-top: 32px;
    border-radius: 24px;
    padding: 34px;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15,23,42,.05);
}

.success {
    border-left: 6px solid #10b981;
}

.error {
    border-left: 6px solid #ef4444;
}

.status {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

.success .status {
    color: #059669;
}

.error .status {
    color: #dc2626;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 20px;
}

.info-box {
    background: #f8fafc;
    border-radius: 18px;
    padding: 20px;
}

.label {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.value {
    font-weight: 600;
    color: #0f172a;
}

@media(max-width:768px) {
    h1 {
        font-size: 34px;
    }

    .header {
        padding: 0 20px;
    }

    .upload-card {
        padding: 26px;
    }

    .drop-zone {
        padding: 50px 20px;
    }
}
