body {
    font-family: 'Mitr', 'Kanit', 'Prompt', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.container {
    max-width: 1200px;
}

/* Header Styles */
.site-header {
    background-color: #0d6efd;
    position: fixed; /* ทำให้ Header ติดด้านบน */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* อยู่เหนือ Sidebar */
}

.site-header a {
    color: #fff;
    text-decoration: none;
}

.site-header a:hover {
    text-decoration: underline;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 60px; /* ความสูงของ Header (py-3 = 3rem) */
    left: 0;
    background-color: #343a40;
    color: #fff;
    padding: 15px;
    width: 250px;
    height: calc(100vh - 60px); /* ความสูงเต็มหน้าจอลบ Header */
    transition: width 0.3s;
    overflow-y: auto;
    z-index: 900; /* ต่ำกว่า Header */
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar .nav-link {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar .nav-link:hover {
    background-color: #495057;
}

/* Content Styles */
.content {
    margin-left: 250px;
    margin-top: 60px; /* ความสูงของ Header */
    transition: margin-left 0.3s;
    flex: 1;
}

.content.collapsed {
    margin-left: 70px;
}

/* Footer Styles */
.site-footer {
    background-color: #343a40;
}

/* Other Styles */
.tooltip {
    font-size: 14px;
}

.card-header h4 {
    font-weight: 600;
}

.nav-tabs .nav-link i {
    margin-right: 5px;
}