* {
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    background: #f4f6f9;
}

.navbar {
    background: #1e293b;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}

.container {
    padding: 30px;
    max-width: 1200px;
    margin: auto;
}

@media (max-width: 576px) {
    .container {
        padding: 15px;
    }
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.btn {
    padding: 10px 16px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
}

.btn-danger {
    background: #dc2626;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th {
    background: #1e293b;
    color: white;
    padding: 12px;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.status {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: white;
}

.OPEN { background: #f59e0b; }
.PROCESS { background: #3b82f6; }
.DONE { background: #16a34a; }
.REJECT { background: #dc2626; }

input, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .navbar a {
        margin: 5px 0;
    }
}

/* =========================
   RESPONSIVE TABLE (MOBILE)
   ========================= */
@media (max-width: 768px) {

  .table-wrapper {
    overflow-x: hidden;
  }

  .responsive-table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table th,
  .responsive-table td,
  .responsive-table tr {
    display: block;
    width: 100%;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tr {
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
  }

  .responsive-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
  }

  .responsive-table td:last-child {
    border-bottom: none;
  }

  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #374151;
  }

  .btn-sm {
    width: auto;
    padding: 6px 12px;
    font-size: 13px;
  }
}
/* ===============================
   NAVBAR MOBILE FIX (ORI HTML)
   =============================== */
@media (max-width: 768px) {

  .navbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .navbar > div {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .navbar > div a {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 14px;
  }
}
