/* ================= GLOBAL ================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f9;
}

/* ================= HEADER ================= */
.header {
    background: #2c3e50;
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #f1c40f;
}

.logout {
    color: #ff7675 !important;
}

/* ================= BUTTON GLOBAL ================= */
.btn-back {
    background: #3498db;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-back:hover {
    background: #2980b9;
}

.back-area {
    text-align: center;
    margin-top: 20px;
}

/* ================= LOGIN ================= */
.login-box {
    width: 350px;
    background: white;
    padding: 30px;
    margin: 100px auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin: 10px 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-box button {
    width: 100%;
    padding: 10px;
}

.login-box p {
    text-align: center;
}

/* ================= DASHBOARD ================= */
.dashboard-content {
    width: 80%;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
}

/* ================= MENU PRODUK ================= */
.menu-container {
    width: 90%;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
}

.menu-container h1 {
    margin-bottom: 25px;
    color: #2c3e50;
}

table.dataTable {
    width: 100% !important;
    border-collapse: collapse !important;
}

table.dataTable thead {
    background: #2c3e50;
    color: white;
}

table.dataTable td,
table.dataTable th {
    padding: 15px;
}

/* ================= KERANJANG ================= */
.keranjang-container {
    width: 85%;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
}

.keranjang-action {
    margin-top: 30px;
    display: flex;
    justify-content: center; /* biar di tengah */
    gap: 15px; /* 🔥 ini jarak antar tombol */
}

.table-keranjang {
    width: 100%;
    border-collapse: collapse;
}

.table-keranjang th {
    background: #2c3e50;
    color: white;
    padding: 15px;
}

.table-keranjang td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.total-box {
    margin-top: 25px;
    text-align: right;
    color: #27ae60;
}

.btn-checkout {
    background: #27ae60;
    color: white;
    padding: 12px 18px;
    border-radius: 5px;
    text-decoration: none;
}

.btn-checkout:hover {
    background: #219150;
}

/* ================= ALAMAT ================= */
.alamat-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.alamat-action a {
    flex: 1;
    text-align: center;
    padding: 20x 0; /* 🔥 samakan tinggi */
    display: inline-block;
}

.alamat-action a {
    flex: 1; /* 🔥 biar sama lebar */
    text-align: center;
}

.alamat-card {
    width: 400px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.alamat-card h2 {
    text-align: center;
    margin-bottom: 20px;
}

.btn-edit {
    display: block;
    margin: 20px auto 0;
    background: #f39c12;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
}

/* ================= RIWAYAT ================= */
.container-riwayat {
    width: 80%;
    margin: 80px auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
}

.table-riwayat {
    width: 100%;
    border-collapse: collapse;
}

.table-riwayat th {
    background: #2c3e50;
    color: white;
    padding: 10px;
}

.table-riwayat td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

/* STATUS */
.badge { padding: 5px 10px; border-radius: 5px; color: white; }
.pending { background: gray; }
.proses { background: orange; }
.kirim { background: blue; }
.selesai { background: green; }

/* ================= DETAIL ================= */
.container-detail {
    width: 70%;
    margin: 80px auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
}

.table-detail {
    width: 100%;
    border-collapse: collapse;
}

.table-detail th {
    background: #2c3e50;
    color: white;
    padding: 10px;
}

.table-detail td {
    padding: 10px;
    text-align: center;
}

/* ================= FORM ================= */
.container-form {
    width: 400px;
    margin: 80px auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
}

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

.form-alamat input,
.form-alamat textarea {
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-submit {
    margin-top: 15px;
    background: #27ae60;
    color: white;
    padding: 10px;
    border-radius: 6px;
}

/* ================= CHECKOUT ================= */
.checkout-box {
    width: 400px;
    margin: 100px auto;
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
}

.check-icon {
    font-size: 40px;
    color: #27ae60;
}

.btn-primary {
    background: #27ae60;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
}