:root {
    --primary-navy: #FFAA00;
    --secondary-navy: #1a2b6b;
    --soft-gray: #f4f6f9;
    --success-green: #519A66;
    --danger-red: #dc3545;
}

body {
    background-color: var(--soft-gray);
}

.page-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(12, 23, 64, 0.15);
}

.page-header h3 {
    margin-bottom: 8px;
    font-weight: 700;
}

.page-header p {
    opacity: 0.9;
    margin-bottom: 0;
}

.step-card1 {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.step-card1:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.step-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    color: white;
}

.step-number-circle {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-right: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.step-body {
    display: block; 
    width: 100%;
    padding: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 20px;
    margin-bottom: 25px;
}

.info-box {
    background: #f8f9fc;
    border: 2px solid #e3e6f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-box:hover {
    border-color: var(--primary-navy);
    transform: translateX(5px);
}

.info-box:hover::before {
    width: 8px;
}

.info-box-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.info-icon-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-right: 12px;
}

.info-box1 {
    background: #f8f9fc;
    border: 2px solid #e3e6f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-navy);
    transition: width 0.3s ease;
}

.info-box1:hover {
    border-color: var(--primary-navy);
    transform: translateX(5px);
}

.info-box1:hover::before {
    width: 8px;
}

.info-box1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-navy);
    transition: width 0.3s ease;
}

.info-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.5;
}

.info-value .badge {
    font-size: 11px;
    padding: 5px 12px;
    vertical-align: middle;
}

.download-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 2px dashed var(--secondary-navy);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.download-icon-wrapper {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.2);
}

.download-icon-wrapper i {
    font-size: 35px;
    color: var(--danger-red);
}

.btn-download {
    background: linear-gradient(135deg, var(--danger-red), #c82333);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-download:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

.btn-download i {
    margin-right: 10px;
    font-size: 18px;
}

.upload-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 3px dashed #FFD786;
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-section:hover,
.upload-section.dragover {
    border-color: var(--primary-navy);
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    transform: scale(1.02);
}

.upload-icon-wrapper {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.upload-section:hover .upload-icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.upload-icon-wrapper i {
    font-size: 45px;
    color: #FFD786;
    transition: all 0.3s ease;
}

.upload-section:hover .upload-icon-wrapper i {
    color: var(--primary-navy);
}

.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 10px;
}

.upload-subtitle {
    color: #64748b;
    margin-bottom: 20px;
}

.file-types {
    display: inline-flex;
    gap: 10px;
    margin-top: 15px;
}

.file-type-badge {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.btn-submit {
    background: linear-gradient(135deg, var(--success-green), #237227);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    margin-top: 25px;
    width: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #237227, #1e7e34);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert-custom {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);;
    border-left: 4px solid #ffc107;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.alert-custom i {
    font-size: 24px;
    color: #ffc107;
    margin-right: 15px;
}

.alert-custom-content {
    flex: 1;
}

.alert-custom-content strong {
    display: block;
    margin-bottom: 5px;
    color: white;
}

.alert-custom-content p {
    margin: 0;
    color: white;
    font-size: 14px;
}

.btn-back {
    background: white;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--primary-navy);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 23, 64, 0.3);
}

.upload-section.success {
    border-color: var(--success-green);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.upload-section.success .upload-icon-wrapper {
    background: var(--success-green);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
}

.upload-section.success .upload-icon-wrapper i {
    color: white;
}

@media (max-width: 768px) {
    .page-header {
        padding: 20px;
    }

    .step-body {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .download-section,
    .upload-section {
        padding: 30px 20px;
    }
}

.step-desc {
    opacity: 0.9;
}

/* Panah pada tanggal */
.date-arrow {
    font-size: 12px;
}

/* Info Box yang memenuhi lebar (Grid Column Span) */
.info-box-full {
    grid-column: 1 / -1;
    width: 100%;
}

/* --- Tabel/List Barang --- */
.item-list-header {
    display: flex;
    width: 100%;
    padding: 0.5rem 1rem; /* px-3 py-2 */
    border-bottom: 1px solid #dee2e6;
    background-color: #237227; /* bg-light */
    color: #6c757d; /* text-muted */
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.item-list-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.item-list-row {
    border-bottom: 1px solid #f0f0f0;
}

.item-content-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 1rem; /* px-3 py-3 */
}

/* Kolom-kolom dalam List Barang */
.col-item-name {
    width: 30%;
    padding-right: 15px;
    font-weight: 600;
    color: #333;
}

.col-item-spec {
    width: 55%;
    padding-right: 15px;
    font-size: 0.9em;
    color: #6c757d;
    line-height: 1.4;
}

.col-item-qty {
    width: 15%;
    text-align: right;
}

/* Ikon Spesifikasi */
.icon-spec {
    font-size: 10px;
    color: #b0b3b8;
    flex-shrink: 0;
}

/* Badge Jumlah Unit */
.badge-qty {
    font-weight: bold;
    color: var(--primary-navy);
    background: #eef2ff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* State Kosong (Tidak ada barang) */
.empty-state-icon {
    opacity: 0.5;
}

/* --- Bagian Download --- */
.download-title {
    color: var(--danger-red);
    font-weight: 700;
    margin-bottom: 10px;
}

.download-desc {
    color: #6c757d;
    margin-bottom: 25px;
}

/* --- Bagian Upload Preview --- */
.upload-preview-wrapper {
    display: none; /* Default hidden, dikontrol JS */
}

.upload-icon-success {
    background: var(--success-green);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
}

.upload-title-success {
    color: var(--success-green);
}

.filename-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    word-break: break-word;
    padding: 0 10px;
}

.btn-reset-upload {
    border-radius: 20px;
    padding: 8px 20px;
}
