* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

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

.modal-header h2 {
    font-size: 1.5rem;
    color: #333;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-upload {
    display: flex
;
    align-items: center;
    gap: 10px;
    border: 2px dashed #ddd;
    padding: 10px;
    border-radius: 4px;
}

.upload-btn {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.preview-section {
    background-color: rgb(245, 245, 245);
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    max-width: 100%;
    display: flex
;
    justify-content: center;
    align-items: center;
}

.preview-section img {
    display: block;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;

    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}

.submit-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.history-section {
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgb(238, 238, 238);
}

.history-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    text-align: center;
    font-weight: normal;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}


.submission-item {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.submission-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.submission-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submission-time {
    color: #666;
    font-size: 13px;
}

.submission-status {
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.submission-item.pending .submission-status {
    background-color: #fff3cd;
    color: #856404;
}

.submission-item.approved .submission-status {
    background-color: #d4edda;
    color: #155724;
}

.submission-item.rejected .submission-status {
    background-color: #f8d7da;
    color: #721c24;
}

.rejection-reason {
    margin-top: 8px;
    color: #721c24;
    font-size: 13px;
    padding: 8px;
    background-color: #fff;
    border-radius: 4px;
}

.empty-history {
    text-align: center;
    color: #666;
    padding: 20px;
    font-size: 14px;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

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

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