/* ========================
GLOBAL STYLE
======================== */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
}

/* ========================
PLATFORM SELECTOR
======================== */

.container {
    width: 98%;
    max-width: none;
    margin: 0 auto;
}

.dh-container-all {
    margin-top: 80px;
}

.dh-container-app {
    margin-top: 80px;
    justify-content: center;
    background-size: cover;
    background-color: #fff6ea;
    padding: 40px 20px;
    border-radius: 10px;
    border: 1px solid #f0c17b9c;
}

.dh-container-app p {
    color: #555;
    font-size: 1em;
    margin-bottom: 30px;
    line-height: 1.5em;
}

.dh-box-app {
    max-width: 700px;
    margin: 20px auto;
    text-align: center;
}

.dh-rekaporder-box {
    max-width: 1000px;
}

.preview-section {
    margin-top: 30px;
    display: none;
}
.platform-title {
    text-align: center;
    margin: 10px 0 15px;
    color: #555;
    font-size: 16px;
    font-weight: bold;
}

.platform-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border: 2px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 15px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.platform-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

/* Active Platform Colors */
.platform-btn.active[data-platform="shopee"] {
    background-color: #ee4d2d;
    border-color: #ee4d2d;
    color: #fff;
}

.platform-btn.active[data-platform="tiktok"] {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

.platform-btn.active[data-platform="lazada"] {
    background-color: #1f26d6;
    border-color: #1f26d6;
    color: #fff;
}

/* ========================
UPLOAD SECTION
======================== */
.upload-section {
    flex: 1;
    padding: 70px 30px;
    border: 2px dashed #ff8c00;
    background: #ffb45e24;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.upload-container {
    display: flex;
    gap: 20px;
}

.upload-box {
    flex: 1;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s;
}


.upload-box.db-box {
    border-color: #007bff;
    background-color: #f8fbff;
}

.upload-box.order-box {
    border-color: #ee4d2d;
    background-color: #fff4f2;
}

.upload-box h3 {
    margin-top: 0;
    font-size: 18px;
}

/* Drag & Drop Effect */
.dropZone {
    position: relative;
    transition: all 0.3s ease;
}

.dropZone.dragover {
    background-color: #e2e6ea !important;
    border-color: #28a745 !important;
    border-style: solid;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* File Name Indicator */
.file-name {
    display: block;
    margin-top: 15px;
    font-size: 0.9em;
    color: #7f8c8d;
}

#fileLabel {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========================
BUTTONS
======================== */
.btn-process {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    background-color: #007bff;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-process:hover {
    background-color: #0056b3;
}

.btn-process:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-apply-bulk {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.btn-apply-bulk:hover {
    background-color: #218838;
}

.btn-download {
    display: inline-block;
    padding: 12px 20px;
    margin-top: 15px;
    background-color: #28a745;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
}

.btn-download.pelanggan {
    background-color: #17a2b8;
}

.btn-download:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn i, .tab-btn i {
    margin-right: 6px;
}

/* ========================
TABS
======================== */
.tabs-container {
    display: flex;
    gap: 10px;
    margin: 30px 0 15px;
}

/* Tab Buttons */
.tab-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.tab-btn:hover:not(:disabled) {
    background-color: #d5d5d5;
}

.tab-btn.active {
    background-color: #3498db;
    color: #fff;
}
.tab-btn.active:hover {
    background-color: #2279b2;
}

.tab-btn:disabled {
    background-color: #bdc3c7 !important;
    color: #7f8c8d !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.tab-content {
    display: none;
}

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

/* ========================
TABLE
======================== */
.table-container {
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap; 
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 0.8em;
    vertical-align: middle;
}

thead th {
    background-color: #f2f2f2;
    text-align: left;
}

tr:nth-child(even) { background-color: #f9f9f9; }
tr:hover { background-color: #f1f2f6; } 

.table-container tbody tr:nth-child(even) { background-color: #fff9f2; }
.table-container tbody tr:hover { background-color: #ffe9d1; }

/* Form */
.form-control {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* ========================
ROW & TEXT EFFECT
======================== */
.row-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #ff8c00; 
}

.row-has-value {
    background-color: #d4edda !important;
    color: #155724;
    font-weight: bold;
}

/* SKU Marquee Effect */
.sku-ref-cell {
    max-width: 250px;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    display: block;
    position: relative;
}

.sku-text {
    display: inline-block;
    position: relative;
    left: 0;
}

/* ========================
BULK ACTIONS
======================== */
.bulk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin: 25px 0 22px;
}

.bulk-title {
    font-weight: bold;
    color: #004085;
    font-size: 15px;
}

.bulk-separator {
    width: 1px;
    height: 35px;
    background-color: #ccc;
    margin: 0 5px;
}

.dh-tab-judul {
    display: flex;
    justify-content: space-between; /* Mendorong h3 ke kiri dan button ke kanan */
    align-items: center; /* Memastikan h3 dan button sejajar di tengah secara vertikal */
    margin-bottom: 10px;
}

.dh-tab-judul h3 {
    margin: 0; /* Menghilangkan margin bawaan h3 agar posisinya rapi */
    display: flex;
    align-items: center;
    gap: 8px; /* Memberi jarak antara icon dan teks (jika browser mendukung gap di flex) */
}