/* assets/css/leave_request.css (ไฟล์สำหรับ leave_request.html) */
body {
    font-family: 'Sarabun', sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120vh;
    padding: 40px 0; 
}
.login-container {
    text-align: center;
}

.login-box {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 310px;
    position: relative; /* --- 1. เพิ่ม position: relative --- */
    padding-bottom: 30px; /* --- 2. เพิ่มพื้นที่ด้านล่างเผื่อลิงก์ --- */
}
h2 {
    color: #005a8d;
    margin-top: 0;
}
p {
    color: #666;
    margin-bottom: 25px;
}
.input-group {
    text-align: left;
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}
.input-group input, .input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: 'Sarabun', sans-serif;
}

#submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background-color: #0077b6;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}
#submit-btn:hover {
    background-color: #005a8d;
}


.message {
    color: #666;
    margin-top: 15px;
    font-weight: bold;
    min-height: 20px;
}
.datetime-group {
    display: flex;
    gap: 30px;
}
.datetime-group > div {
    flex: 1;
}

.search-container {
    position: relative;
}
.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 10;
}
.result-item {
    padding: 12px;
    cursor: pointer;
    text-align: left;
}
.result-item:hover {
    background-color: #f0f2f5;
}
.logo {
    max-width: 100px;
    margin-bottom: 20px;
}
.file-name {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}
.secondary-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
    width: 100%;
}
.calendar-link-secondary {
    color: #005a8d;
    text-decoration: none;
    font-weight: bold;
}
.calendar-link-secondary:hover {
    text-decoration: underline;
}



/* --- Tab Menu Styles --- */
.tab-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    border-bottom: 2px solid #ddd;
}

.tab-link {
    font-family: 'Sarabun', sans-serif;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 30px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-link:hover {
    color: #005a8d;
}

.tab-link.active {
    color: #0077b6;
    border-bottom-color: #0077b6;
}
.back-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.back-link:hover {
    background-color: #5a6268;
}