.status-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-submitted { 
    background-color: #fff3cd; 
    color: #856404; 
}

.status-under_review { 
    background-color: #cfe2ff; 
    color: #084298; 
}

.status-approved { 
    background-color: #d1e7dd; 
    color: #0f5132; 
}

.status-rejected { 
    background-color: #f8d7da; 
    color: #842029; 
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.members-table thead {
    background-color: #2c3e50;
    color: white;
}

.members-table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.members-table tbody tr:hover {
    background-color: #f8f9fa;
}

.certificate-preview-box {
    width: 60px;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.certificate-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.certificate-img:hover {
    transform: scale(1.05);
}

.document-link {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.document-link:hover {
    text-decoration: underline;
}

.details-content {
    padding: 20px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.detail-item label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.detail-item p {
    margin: 0;
    color: #666;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

.document-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease-in;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    margin-top: 5%;
    padding: 0;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
    max-height: calc(85vh - 140px);
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
