/**
 * Draw History Styles
 */

.lucky-wheel-history-container {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.lucky-wheel-history-container h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.lucky-wheel-history-empty {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 4px;
    color: #666;
    font-size: 16px;
}

.lucky-wheel-history-login-notice {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 4px;
    color: #666;
    font-size: 16px;
}

.lucky-wheel-history-table-container {
    overflow-x: auto;
}

.lucky-wheel-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.lucky-wheel-history-table th,
.lucky-wheel-history-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.lucky-wheel-history-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.lucky-wheel-history-table tr:last-child td {
    border-bottom: none;
}

.lucky-wheel-history-table tr:hover {
    background-color: #f9f9f9;
}

.coupon-code {
    font-family: monospace;
    font-size: 14px;
    padding: 4px 8px;
    background-color: #f1f1f1;
    border-radius: 3px;
    border: 1px dashed #ccc;
    margin-right: 5px;
}

.copy-coupon {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-coupon:hover {
    background-color: #45a049;
}

.status-delivered {
    color: #4CAF50;
    font-weight: 500;
}

.status-pending {
    color: #ff9800;
    font-weight: 500;
}

.status-address-filled {
    color: #4285F4;
    font-weight: 500;
}

.status-waiting {
    color: #f44336;
    font-weight: 500;
}

.status-delivered,
.status-waiting,
.status-pending,
.status-address-filled {
    display: inline-block;
    margin-bottom: 5px;
}

.edit-address-link,
.confirm-address-link {
    display: inline-block;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.edit-address-link:hover,
.confirm-address-link:hover {
    background-color: #0b7dda;
}

.confirm-address-link {
    background-color: #4CAF50;
}

.confirm-address-link:hover {
    background-color: #45a049;
}

.lucky-wheel-history-pagination {
    text-align: center;
    margin-top: 20px;
}

.lucky-wheel-history-pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.lucky-wheel-history-pagination .page-numbers.current {
    background-color: #2196F3;
    color: white;
    border-color: #2196F3;
}

.lucky-wheel-history-pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

/* 移除模态框样式 */

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .lucky-wheel-history-table {
        font-size: 14px;
    }
    
    .lucky-wheel-history-table th,
    .lucky-wheel-history-table td {
        padding: 8px 10px;
    }
    
    .lucky-wheel-modal-content {
        width: 95%;
        margin: 20% auto;
    }
}