/* === GLOBAL === */
body {
    background: #f5f7fb;
    font-family: 'Poppins', sans-serif;
}

.tambahbarang-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.form-columns {
    display: flex;
    gap: 25px;
}

.form-left,
.form-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* === CARD === */
.card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-title {
    font-weight: 700;
    color: #1a3365 !important;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

/* === FORM ELEMENTS === */
.mt-3 {
    margin-top: 12px;
}

textarea,
input[type="text"],
input[type="number"],
select {
    border: 1px solid #cfd9e6;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    outline: none;
    background: #fefefe;
    transition: border-color 0.2s;
}

textarea:focus,
input:focus,
select:focus {
    border-color: #2a4b8d;
}

textarea {
    resize: none;
    min-height: 70px;
}

/* === ROW WITH 2 FIELDS === */
.row-two {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

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

/* === INPUT WITH BUTTON === */
.input-with-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-btn select {
    flex: 1;
    min-width: 220px;
}

.input-with-btn .btn-small {
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-small {
    background: #e8f0fe;
    color: #2a4b8d;
    border: none;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-small:hover {
    background: #d0e0ff;
}

/* === BOTTOM BUTTONS === */
.button-row {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.btn-cancel {
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 30px;
    font-weight: bold;
    cursor: pointer;
}

.btn-cancel:hover {
    background: #a12020;
}

.btn-submit {
    background: #1a2a47;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 30px;
    font-weight: bold;
    cursor: pointer;
}

.btn-submit:hover {
    background: #203864;
}

/* === UPLOAD CARD (Final) === */
.upload-card {
    text-align: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Area upload utama (drop zone) */
.upload-area {
    border: 2px dashed #cfd9e6;
    border-radius: 12px;
    background: #f3f6fb;
    width: 100%;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: #e8efff;
    border-color: #2a4b8d;
}

/* Icon awan */
.cloud-icon {
    font-size: 32px;
    margin-bottom: 6px;
    color: #2a4b8d;
}

/* === PREVIEW SECTION === */
.preview-container {
    margin-top: 15px;
    width: 100%;
}

.preview-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 15px;
    gap: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.preview-img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 13px;
    color: #444;
}

.file-name {
    font-weight: 600;
}

.file-size {
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

.delete-btn {
    background-color: #ff4d4d;
    border: none;
    color: white;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: 0.2s ease;
}

.delete-btn:hover {
    background-color: #d63031;
}

