body {
    font-family: 'Sarabun', sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
}

header, main {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

header {
    background-color: #005a8d;
    color: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h1 { margin: 0; }

.search-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.input-group {
    text-align: left;
}
.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}
.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;
}
.result-item:hover {
    background-color: #f0f2f5;
}

#status-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.status-card {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 5px solid #ccc;
}
.status-card.status-Pending { border-left-color: #ffc107; }
.status-card.status-Approved { border-left-color: #28a745; }
.status-card.status-Rejected { border-left-color: #dc3545; }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #b8b8b8;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.request-date {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}
.status-badge {
    font-size: 15px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
}
.status-Pending { background-color: #ffedb7; color: #333; }
.status-Approved { background-color: #c2e9bc; color: #333;}
.status-Rejected { background-color: #ffe3e6; color: #333;}

.card-body p {
    margin: 5px 0;
}
.card-body strong {
    min-width: 80px;
    display: inline-block;
}
.evidence-link {
    color: #0077b6;
    font-weight: bold;
}

#loading-message {
    padding: 20px;
    font-style: italic;
    color: #666;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}
