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; }

#request-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    text-align: left;
}

/* --- ส่วนที่แก้ไข --- */
.request-card {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 5px solid #ffc107;
    display: flex; /* ใช้ Flexbox เพื่อจัดเรียง */
    gap: 15px; /* ระยะห่างระหว่างรูปกับเนื้อหา */
    align-items: flex-start; /* จัดให้อยู่บนสุด */
}

.card-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* ป้องกันไม่ให้รูปหด */
}

.card-content {
    flex-grow: 1; /* ทำให้เนื้อหาขยายเต็มพื้นที่ */
}
/* --- จบส่วนที่แก้ไข --- */

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.student-name {
    font-size: 18px;
    font-weight: bold;
    color: #005a8d;
}

.timestamp {
    font-size: 12px;
    color: #888;
}

.card-body p {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.card-body strong {
    min-width: 80px;
    display: inline-block;
    color: #555;
}

.evidence-link, .phone-link {
    color: #0077b6;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.evidence-link:hover, .phone-link:hover {
    text-decoration: underline;
}
.phone-link svg {
    width: 16px;
    height: 16px;
}

.card-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.action-btn {
    font-family: 'Sarabun', sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
}
.action-btn:hover {
    opacity: 0.9;
}
.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.approve-btn {
    background-color: #28a745;
}

.reject-btn {
    background-color: #dc3545;
}

#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;
}
