/* นำเข้าฟอนต์ Prompt จาก Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

/* ตั้งค่าพื้นฐานทั้งระบบ */
body {
    font-family: 'Prompt', sans-serif !important;
    background-color: #f4f6f9;
    color: #334155;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.content-wrapper {
    flex: 1;
}

/* ==================================
   ส่วนของหน้า Login (พรีเมียม & มิติชัดเจน)
   ================================== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.8rem 2.2rem;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-top: 6px solid #0d6efd; 
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* ==================================
   ส่วนของการ์ดเมนู (Dashboard Cards)
   ================================== */
.card-menu {
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04) !important;
    background: #ffffff;
}

/* เมื่อเอาเมาส์ชี้ การ์ดจะลอยขึ้นและมีเงาละมุนขึ้น */
.card-menu:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(13, 110, 253, 0.12) !important;
    border-color: rgba(13, 110, 253, 0.2) !important;
}

.card-menu .card-body {
    padding: 2rem 1rem;
}

/* ==================================
   ส่วนของ Navbar และ Footer
   ================================== */
.navbar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.3px;
}

footer {
    background-color: #1e293b !important; /* ปรับสี Footer ให้เข้มดูพรีเมียมขึ้น */
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    padding: 1.25rem 0;
}

/* ==================================
   ส่วนของตาราง (Tables & Cards Layout)
   ================================== */
.card {
    border-radius: 14px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.table-responsive {
    background: #ffffff;
    border-radius: 14px;
    padding: 5px;
}

.table {
    margin-bottom: 0;
    vertical-align: middle;
}

.table thead th {
    background-color: #212529;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    border: none;
}

.table thead th:first-child {
    border-top-left-radius: 10px;
}

.table thead th:last-child {
    border-top-right-radius: 10px;
}

.table tbody td {
    padding: 12px 15px;
    color: #475569;
}

/* ป้ายสถานะ (Badge) ให้ดูมนและอ่านง่ายขึ้น */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
    border-radius: 30px;
}

/* ปุ่มกดต่างๆ ในระบบให้มีความโค้งมนสวยงาม */
.btn {
    border-radius: 8px;
    padding: 0.45rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    border: 1px solid #cbd5e1;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}
/* ================================
   โลโก้และชื่อระบบ
================================ */

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.school-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.10);
}

.brand-text h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.brand-text small {
    font-size: 12px;
    opacity: 0.7;
}


/* ================================
   เมนู Sidebar
================================ */

.menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 15px;

    text-decoration: none;
    color: #333;

    border-radius: 10px;

    transition: all 0.25s ease;
}

.menu-link:hover {
    background: #eef3ff;
    color: #0d6efd;
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* ================================
   Badge จำนวนงาน
================================ */

.task-badge {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 26px;
    height: 26px;

    padding: 0 8px;

    border-radius: 50px;

    background: #dc3545;
    color: #fff;

    font-size: 12px;
    font-weight: 600;

    box-shadow: 0 3px 8px rgba(220,53,69,0.25);

    animation: pulseBadge 2s infinite;
}


/* Badge ภาระงานของฉัน */

.my-task {
    background: #0d6efd;

    box-shadow: 0 3px 8px rgba(13,110,253,0.25);
}


/* Animation เมื่อมีงานใหม่ */

@keyframes pulseBadge {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }

}