
/* Reset พื้นฐาน */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: Tahoma, sans-serif;
    box-sizing: border-box;
    overflow-x: hidden; /* ป้องกันการเลื่อนแนวนอน */
}

/* ใช้ box-sizing กับทุก element */
*, *::before, *::after {
    box-sizing: inherit;
}

/* Header */
header {
    width: 100%;
    background: #ffffff;
    padding: 15px 0; /* เอา padding ซ้ายออก เพื่อให้โลโก้ชิด */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* จัดทุกอย่างไปทางซ้าย */
    width: 100%;
    padding-left: 5px;  /* เหลือระยะกันชนเล็กน้อยจากขอบซ้าย */
    padding-right: 20px;
    gap: 40px; /* ระยะห่างระหว่างโลโก้กับเมนู */
}



/* เมนู */
.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px; /* ใหญ่ขึ้นตามโลโก้ */
    white-space: nowrap;
}
.nav-links a:hover {
    color: #e74c3c;
}


/* assets/member-info.css */

/* วางไฟล์นี้ไว้ใน <head> หลังโหลด style.css เช่น
   <link rel="stylesheet" href="assets/member-info.css">
*/

.member-info-box {
  max-width: 700px;
  margin: 50px auto;
  padding: 30px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', sans-serif;
}

.member-info-box h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #0078D7;
  margin-bottom: 30px;
  position: relative;
}

.member-info-box h2::before,
.member-info-box h2::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 50px;
  height: 2px;
  background: #e0e0e0;
}

.member-info-box h2::before {
  left: 0;
}

.member-info-box h2::after {
  right: 0;
}

.info-group {
  margin-bottom: 25px;
}

.info-group h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #005fa3;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 6px;
}

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

.info-table th,
.info-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.info-table th {
  width: 30%;
  color: #555;
  font-weight: 600;
}

.username-text {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
  background: #f0faff;
  padding: 6px 12px;
  border-radius: 4px;
}

.status-badge {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 12px;
  color: #fff;
  text-transform: uppercase;
}

.status-open {
  background-color: #28a745;
}

.status-closed {
  background-color: #dc3545;
}

.action-btn {
  text-align: center;
  margin-top: 35px;
}

.action-btn .btn-edit {
  display: inline-block;
  background: #0078D7;
  color: #fff;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.action-btn .btn-edit:hover {
  background: #005fa3;
}

/* Responsive */
@media (max-width: 600px) {
  .member-info-box {
    padding: 20px;
    margin: 20px auto;
  }
  .info-table th,
  .info-table td {
    padding: 8px 6px;
  }
  .username-text {
    font-size: 1.1rem;
    padding: 4px 8px;
  }
  .status-badge {
    padding: 4px 10px;
    font-size: 0.9rem;
  }
  .action-btn .btn-edit {
    padding: 8px 16px;
    font-size: 0.95rem;
  }
}


/* ปรับ .username-text ให้เด่นขึ้นและตัวใหญ่ขึ้น */
.username-text {
  display: inline-block;
  font-size: 2rem;               /* ตัวใหญ่ขึ้น */
  font-weight: 800;              /* หนาขึ้น */
  color: #005fa3;                /* สีอักษรเน้น */
  background: #e6f0ff;           /* พื้นหลังอ่อน */
  padding: 8px 16px;             /* พื้นที่โดยรอบ */
  border: 2px solid #0078D7;     /* ขอบสีน้ำเงิน */
  border-radius: 6px;            /* มุมโค้งมน */
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  margin-bottom: 8px;
  line-height: 1.2;
}

/* ปรับในหน้าจอเล็กให้พอดี */
@media (max-width: 600px) {
  .username-text {
    font-size: 1.6rem;
    padding: 6px 12px;
  }
}





