/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    padding: 15px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 800px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 20px;
    background: #1e293b;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 24px;
    color: #38bdf8;
}

.header h2 {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 5px;
}

/* Cards */
.upload-card, .form-card, .history-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.upload-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #0f172a;
}

.upload-card p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
}

.upload-zone input[type="file"] {
    width: 100%;
    padding: 12px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.status-box {
    margin-top: 15px;
    padding: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-size: 14px;
}

.counter-text {
    font-weight: bold;
    color: #15803d;
    margin-top: 5px;
}

/* Section Title */
.section-title {
    font-size: 16px;
    color: #2563eb;
    border-bottom: 2px solid #eff6ff;
    padding-bottom: 6px;
    margin-bottom: 15px;
}

/* Form Layout */
.grid-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media(min-width: 600px) {
    .grid-form {
        grid-template-columns: 1fr 1fr;
    }
    .full-width {
        grid-column: span 2;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.form-group input {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Actions */
.actions {
    margin-top: 25px;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* Accordion (Sanfona) */
.accordion-container {
    margin-top: 10px;
}

.empty-msg {
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
}

.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    background: #f8fafc;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #f1f5f9;
}

.accordion-content {
    display: none;
    padding: 15px;
    background: #ffffff;
    font-size: 13px;
    color: #334155;
    border-top: 1px solid #e2e8f0;
}

.accordion-content.active {
    display: block;
}

.accordion-details p {
    margin-bottom: 6px;
}

.accordion-details p strong {
    color: #0f172a;
}

/* Modal / Pop-up */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px auto;
}

.modal-content h3 {
    margin-bottom: 8px;
    color: #0f172a;
}

.modal-content p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.btn-modal {
    width: 100%;
    padding: 10px;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.hidden {
    display: none !important;
}
