* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sarabun', sans-serif; /* ฟอนต์สวยๆ ที่ใช้งานในภาษาไทย */
}

.box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

.calendar-container {
    width: 100%;
    background: linear-gradient(135deg, #ffffff, #e5e5e5); /* ไล่สีพื้นหลังเพื่อให้ดูมีมิติ */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* เงามิติ */
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
   
    background-image: linear-gradient(to right, #0033ff, #b7d1f8);

    color: white;
    padding: 20px 40px;
    font-size: 1.3em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #fff;
    position: relative;
}

.nav-btn {
    background-color: #fff;
    color: #4CAF50;
    text-decoration: none;
    font-size: 1.5em;
    padding: 12px;
    border-radius: 50%;
    transition: background-color 0.3s ease-in-out;
}

.nav-btn:hover {
    background-color: #f1f1f1;
}

.calendar-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.days-of-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    width: 100%;
    height: auto;
    font-weight: 600;
    margin-bottom: 15px;
    color: #555;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 12px;
    width: 100%;
    height: 700px;
    padding: 10px;
}

.calendar-days span {
    display: block;
    text-align: center;
    padding: 20px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.2em;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calendar-days span:hover {
    background-color: #4CAF50;
    color: white;
    transform: scale(1.1);
}

.calendar-days span.today {
    background-color: #ffd900a3; /* ให้วันปัจจุบันโดดเด่น */
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.calendar-days span a {
    text-decoration: none;
    color: inherit;
}

.today-btn {
    background-color: #03ff0bb3;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    font-size: 1.2em;
    border-radius: 20px;
    align-self: center;
    margin-top: 20px;
    transition: background-color 0.3s ease-in-out;
}

.today-btn:hover {
    background-color: #45a049;
}

.btn1 {
    cursor: pointer;
    text-decoration: none;
}

/* ปรับสไตล์ของปฏิทินในส่วนของวันลา */
.btn1 h4 {
    font-size: 1em;
    margin: 5px;
    padding: 5px;
    border-radius: 5px;
    font-weight: 600;
    display: block;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn1 h4:hover {
    background-color: rgba(0, 255, 0, 0.3);
    transform: scale(1.1);
}

/* วันอาทิตย์ */
.calendar-days span:nth-child(7n+1) {
    background-color: #ffe6f0; /* ชมพูอ่อน */
}

/* วันเสาร์ */
.calendar-days span:nth-child(7n) {
    background-color: #ffe6f0; /* ชมพูอ่อน */
}

/* วันหยุดจาก API (holiday) */
.calendar-days span.holiday {
    background-color: #ffccd9; /* ชมพูเข้มกว่านิดหน่อย */
    color: #C00;
}
/* วันหยุด */
.calendar-days span.holiday {
    background-color: #ffccd9; /* สีชมพู */
    color: #C00; /* ตัวอักษรสีแดงเข้ม */
    border-radius: 12px;
}
/* วงกลมตัวเลขคนลา */
.leave-badge {
    width: 28px;
    height: 28px;
    background: #E6CCFF;
    color: #4B0082;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px auto 0 auto;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}
.leave-badge:hover {
    background: #d3b0ff;
    transform: scale(1.15);
}

/* วันหยุด */
.holiday {
    background-color: #FFCCCC;
    color: #C00;
    border-radius: 5px;
}

/* Modal */
.modal-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
}
.modal-box {
    width: 330px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}
.modal-close {
    text-align: right;
    cursor: pointer;
    font-weight: bold;
}
.leave-link {
    text-decoration: none;
    color: #3366cc;
}
.leave-link:hover {
    text-decoration: underline;
}
.slider {
    margin: auto;
    overflow: hidden;
    white-space: nowrap;
    background: #000000ff;
    width: 50%;
    border-radius: 10px;
     box-shadow: 0 4px 8px rgba(11, 11, 11, 0.3);
}

.slide-track {
    display: inline-block;
    animation: scroll-left 10s linear infinite;
}

.slide {
    display: inline-block;
    padding: 10px 20px;
    font-size: 20px;
    background: #ffd97915;
    margin-right: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(13, 255, 0, 0.96);
    
}
h1{
    color: #fbff00ff;
    
}
@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}