/* Modal Overlay */
#epfaw-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Content */
#epfaw-modal {
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
.epfaw-modal-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.epfaw-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.epfaw-modal-header button {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
}

.epfaw-modal-header button:hover {
    color: #d9534f;
}

/* Body */
.epfaw-modal-body {
    padding: 20px;
}

/* Form Group */
.epfaw-form-group {
    margin-bottom: 15px;
}

.epfaw-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.epfaw-form-group select,
.epfaw-form-group input[type="date"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Export Button */
#epfaw-export-btn {
    background: #1EC8DC;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background 0.2s ease;
}

#epfaw-export-btn:hover {
    background: #16a8ba;
}

#epfaw-export-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Loading state */
#epfaw-loading {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* Button on Payouts Tab */
#epfaw-open-modal-btn {
    display: inline-block;
    background: #1EC8DC;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 15px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

#epfaw-open-modal-btn:hover {
    background: #16a8ba;
}
