﻿/* wwwroot/css/site.css */

/* Global Font */
body {
    font-family: 'Sarabun', 'Inter', sans-serif;
    background-color: #f8f9fa;
}

/* Navbar Gradient Background */
.navbar {
    background: linear-gradient(135deg, #0f4c81 0%, #1e87f0 100%);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);     /* ทำเส้นขอบบาง ๆ ด้านล่าง */
}

/* Navbar Brand */
.navbar-brand {
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2); /* เงาเล็กน้อยให้ Logo ลอย */
}

    .navbar-brand .text-muted {
        color: rgba(255,255,255,0.7) !important; /* คำว่า API Service สีจางลง */
    }

/* Navbar Links (ตัวหนังสือเมนู) */
.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important; /* สีขาวโปร่งแสง (เพื่อให้ดูไม่แข็งเกินไป) */
    padding: 0.4rem 1rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0 2px;
    background: transparent !important;
}

    /* Hover State (เมาส์ชี้แล้วสว่างขึ้น) */
    .navbar-nav .nav-link:hover {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.15) !important;
        transform: translateY(-1px);
    }

    /* Active State (เมนูปัจจุบัน) */
    .navbar-nav .nav-link.active {
        color: #0f4c81 !important; /* ตัวหนังสือกลับมาเป็นสีน้ำเงินเข้ม เพื่อให้อ่านง่ายบนพื้นขาว */
        font-weight: 700;
        background-color: #ffffff !important; /* พื้นหลังสีขาวเด่นชัด */
        box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;     /* ใส่เงาให้ปุ่มดูลอย */
    }

/* Button Login Style */
.navbar-nav .btn-light {
    border: 2px solid rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

    .navbar-nav .btn-light:hover {
        background-color: transparent !important;
        border-color: #ffffff !important;
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    }

/* Dropdown Menu */
.dropdown-menu {
    padding: 5px 0 !important;
    margin-top: 8px !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

    /* รีเซ็ตค่า LI ทุกอย่างทิ้ง */
    .dropdown-menu li {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

/* Dropdown Item */
.dropdown-item {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #555 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}
    /* ไอคอน */
    .dropdown-item i {
        width: 20px !important;
        margin-right: 10px !important;
        text-align: center !important;
        color: #adb5bd !important;
    }

    /* Dropdown Hover/Active */
    .dropdown-item:hover {
        background-color: #f8f9fa !important;
        color: #0d6efd !important;
    }

        .dropdown-item:hover i {
            color: #0d6efd !important;
        }

    .dropdown-item.active, .dropdown-item:active {
        background-color: rgba(13, 110, 253, 0.1) !important;
        color: #0d6efd !important;
    }

/* Footer Layout */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}


/* Class สำหรับ Div ที่ครอบตาราง ให้สามารถ drag ซ้าย-ขวาได้ */
.drag-scroll-container {
    cursor: grab;
    overflow-x: auto;
/*    user-select: none;*/
    /* ซ่อน Scrollbar ให้ดูสวยงาม */
/*    scrollbar-width: none;*/
/*    -ms-overflow-style: none;*/
}

    .drag-scroll-container::-webkit-scrollbar {
        display: none;
    }

    .drag-scroll-container.active {
        cursor: grabbing;
        cursor: -webkit-grabbing;
    }

/* Class สำหรับตารางเพื่อให้ยืดออกข้าง */
.table-nowrap th,
.table-nowrap td {
    white-space: nowrap;
}
