/* style.css (เวอร์ชันอัปเกรดความเท่ 2.0) */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #070b13;
    --bg-card: rgba(18, 26, 44, 0.6); /* เอฟเฟกต์กึ่งโปร่งใส */
    --primary-blue: #0052d4;
    --light-blue: #00c6ff;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
    --accent-glow: rgba(0, 198, 255, 0.3);
    --freefire-orange: #ff4e00; /* สีส้ม Free Fire */
}

/* ตกแต่งแถบเลื่อนหน้าจอ (Scrollbar) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--light-blue);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    /* เพิ่มพื้นหลังแบบไล่เฉดสีสไตล์อวกาศ/เกม */
    background-image: 
        radial-gradient(at 10% 20%, rgba(0, 82, 212, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(255, 78, 0, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation Bar */
header {
    background: rgba(13, 21, 39, 0.85);
    backdrop-filter: blur(10px); /* เอฟเฟกต์หลังกระจกเบลอ */
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-blue);
    box-shadow: 0 5px 25px rgba(0, 114, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.logo span {
    color: var(--light-blue);
    text-shadow: 0 0 15px var(--light-blue);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

nav ul li a:hover, nav ul li a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    box-shadow: 0 0 15px var(--light-blue);
    transform: translateY(-2px);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 25px;
}

.title-section {
    text-align: center;
    margin-bottom: 50px;
}

.title-section h1 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(45deg, #fff, var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.title-section p {
    color: var(--text-muted);
    font-size: 18px;
}

/* Card Style (Glassmorphism & Neon Glow) */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 198, 255, 0.15);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--light-blue);
    box-shadow: 0 15px 30px rgba(0, 198, 255, 0.25);
}

/* Buttons (3D & Neon) */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    box-shadow: 0 0 25px var(--light-blue);
    transform: scale(1.05);
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* Table Style (Modern Dark) */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: rgba(13, 21, 39, 0.9) !important;
    color: var(--light-blue) !important;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-blue) !important;
}

td {
    border-bottom: 1px solid rgba(0, 198, 255, 0.1) !important;
}

/* Input Fields */
input[type="text"], input[type="number"], select {
    background-color: rgba(13, 21, 39, 0.8) !important;
    border: 1px solid rgba(0, 198, 255, 0.2) !important;
    padding: 14px !important;
    border-radius: 8px !important;
    transition: 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--light-blue) !important;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.4) !important;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background-color: #04060b;
    border-top: 1px solid rgba(0, 114, 255, 0.2);
    color: var(--text-muted);
    margin-top: 80px;
    font-size: 14px;
}