/* นำเข้าฟอนต์ Kanit จาก Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600&display=swap');

:root {
    --primary-red: #8B0000;      /* แดงเข้ม */
    --dark-bg: #1a1a1a;          /* ดำเกือบสนิท (Sidebar) */
    --page-bg: #f0f2f5;          /* เทาอ่อน (พื้นหลังเนื้อหา) */
    --text-gray: #555;           /* เทาเข้ม (ตัวหนังสือ) */
}

body {
    font-family: 'Kanit', sans-serif;
    background-color: var(--page-bg);
    color: #333;
}

/* --- Sidebar (เมนูซ้าย) --- */
.sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    background-color: var(--dark-bg); /* ดำ */
    padding-top: 20px;
    color: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.sidebar h4 {
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
}

.sidebar a {
    padding: 12px 25px;
    text-decoration: none;
    font-size: 16px;
    color: #bbb; /* เทาอ่อน */
    display: block;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.sidebar a:hover, .sidebar a.active {
    background-color: #2d2d2d; /* เทาเข้มขึ้นเมื่อชี้ */
    color: white;
    border-left: 4px solid var(--primary-red); /* เส้นแดงด้านซ้าย */
}

.sidebar .badge-role {
    background-color: var(--primary-red);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 300;
}

/* --- Content (เนื้อหาขวา) --- */
.content {
    margin-left: 250px;
    padding: 30px;
}

/* --- Card (กล่องข้อมูล) --- */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    border-top: 4px solid var(--primary-red); /* ขอบบนสีแดงเข้ม */
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: var(--primary-red);
}

/* --- Buttons & Elements --- */
.btn-primary {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-primary:hover {
    background-color: #660000;
    border-color: #660000;
}

h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    font-weight: 600;
}