
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Tahoma, sans-serif;
    direction: rtl;
    background: #f5f7fb;
    color: #253047;
}

.container {
    width: 90%;
    max-width: 850px;
    margin: 80px auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #183b65;
}

.header p {
    color: #64748b;
    line-height: 2;
}

.upload-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.upload-area {
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    padding: 45px 20px;
    margin: 25px 0;
    background: #fafcff;
}

.upload-area label {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 13px 28px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
}

.upload-area label:hover {
    background: #1d4ed8;
}

.upload-area input {
    display: none;
}

.file-name {
    margin-top: 20px;
    color: #15803d;
    font-size: 14px;
}

.security-note {
    margin-top: 25px;
    padding: 15px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 8px;
    font-size: 13px;
    line-height: 2;
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: #94a3b8;
    font-size: 12px;
}

.submit-button {
    background: #16a34a;
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 8px;
    cursor: pointer;
    font-family: Tahoma, sans-serif;
    font-size: 15px;
    margin-top: 15px;
}

.submit-button:hover {
    background: #15803d;
}

.error-message {
    background: #fef2f2;
    color: #b91c1c;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.success-message {
    background: #f0fdf4;
    color: #166534;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    line-height: 2;
}

/* =================================
   BRAND HEADER
================================= */

.header {
    padding: 25px 20px;
    margin-bottom: 25px;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.brand-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.brand-text {
    text-align: right;
}

.brand-text h1 {
    color: #087443;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.brand-text p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}


/* =================================
   UPLOAD CARD
================================= */

.upload-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.05);
}

.upload-card > h2 {
    color: #087443;
    margin-bottom: 25px;
}


/* =================================
   UPLOAD AREA
================================= */

.upload-area {
    background: #f8fcf9;
    border: 2px dashed #16a36a;
    border-radius: 14px;
    padding: 35px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.upload-area h3 {
    color: #166534;
    margin-bottom: 12px;
}

.upload-area p {
    color: #64748b;
    margin-bottom: 18px;
}

.upload-area label {
    display: inline-block;
    background: #087443;
    color: white;
    padding: 12px 28px;
    border-radius: 9px;
    cursor: pointer;
    transition: 0.2s;
}

.upload-area label:hover {
    background: #065f38;
}

input[type="file"] {
    display: none;
}

.file-name {
    margin-top: 18px;
    color: #475569;
    font-size: 14px;
    overflow-wrap: anywhere;
}


/* =================================
   SUBMIT BUTTON
================================= */

.submit-button {
    width: 100%;
    padding: 15px;
    background: #087443;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.submit-button:hover {
    background: #065f38;
    transform: translateY(-2px);
}


/* =================================
   RESULT SECTION
================================= */

.result-card {
    margin-top: 30px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-align: right;
}

.result-card > h2 {
    color: #087443;
    margin-bottom: 15px;
}

.success-message {
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}


/* =================================
   FILE STATISTICS
================================= */

.result-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-item {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.stat-item span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-item strong {
    color: #1e293b;
    overflow-wrap: anywhere;
}


/* =================================
   MULTI-SHEET REPORT
================================= */

.sheets-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.sheet-card {
    background: #f8fcf9;
    border: 1px solid #d1e7d9;
    border-right: 5px solid #087443;
    border-radius: 12px;
    padding: 22px;
}

.sheet-card h3 {
    color: #087443;
    margin-bottom: 15px;
}

.sheet-card h4 {
    color: #334155;
    margin-top: 20px;
    margin-bottom: 12px;
}

.sheet-card .result-stats {
    margin: 15px 0;
}

.column-list {
    padding-right: 25px;
}

.column-list li {
    margin-bottom: 9px;
    color: #475569;
}


/* =================================
   ERROR MESSAGE
================================= */

.error-message {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 14px;
    border-radius: 9px;
    margin-bottom: 20px;
}


/* =================================
   SECURITY NOTICE
================================= */

.security-note {
    margin-top: 25px;
    padding: 18px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 10px;
    color: #166534;
    line-height: 2;
    font-size: 14px;
}


/* =================================
   FOOTER
================================= */

.footer {
    text-align: center;
    color: #64748b;
    padding: 25px 10px;
    font-size: 13px;
}


/* =================================
   RESPONSIVE DESIGN
================================= */

@media (max-width: 600px) {

    .brand {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .brand-logo {
        width: 80px;
        height: 80px;
    }

    .brand-text {
        text-align: center;
    }

    .brand-text h1 {
        font-size: 23px;
    }

    .brand-text p {
        font-size: 13px;
    }

    .upload-card {
        padding: 18px;
    }

    .result-stats {
        grid-template-columns: 1fr;
    }

    .sheet-card {
        padding: 16px;
    }

}
