/* Professional Lucky Wheel Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --secondary-gradient: linear-gradient(135deg, #ff6b6b 0%, #ff9800 100%);
    --background-dark: #0f1020;
    --card-background: #1a1a2e;
    --text-light: #e2e8f0;
    --text-muted: #a0aec0;
    --border-color: rgba(255,255,255,0.1);
}

.wc-lucky-wheel-container {
    background: #2a231e ;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    padding: 40px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.wheel-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wc-lucky-wheel-info {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.wc-lucky-wheel-no-spins {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.wc-lucky-wheel-rules {
    margin: 15px 0;
    padding: 15px;
    border-radius: 10px;
    background: rgba(0,0,0,0.2);
}

.wc-lucky-wheel-rules h4 {
    color: #ffb145;
    margin-bottom: 10px;
    font-size: 16px;
}

.wc-lucky-wheel-rules ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.wc-lucky-wheel-rules li {
    padding: 5px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.wc-lucky-wheel-rules li:last-child {
    border-bottom: none;
}

.wc-lucky-wheel-history {
    margin-top: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.wc-lucky-wheel-history h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffb145;
}

.wc-lucky-wheel-history table {
    width: 100%;
    border-collapse: collapse;
}

.wc-lucky-wheel-history th, 
.wc-lucky-wheel-history td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.wc-lucky-wheel-history th {
    color: #ffb145;
}

/* Hiển thị mã giảm giá */
.coupon-code-display {
    display: inline-block;
    background: linear-gradient(135deg, #ff9900 0%, #ff7730 100%);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coupon-code-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.coupon-code-display:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Phân trang lịch sử */
.wc-lucky-wheel-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.wc-lucky-wheel-pagination button {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.wc-lucky-wheel-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wc-lucky-wheel-pagination .pagination-info {
    color: var(--text-light);
    font-size: 14px;
}

.wc-lucky-wheel-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

#lucky-wheel-canvas {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    box-shadow: 
        0 0 0 10px rgba(255,255,255,0.05),
        0 0 0 20px rgba(255,255,255,0.03);
    background: rgba(255,255,255,0.02);
    transition: all 0.3s ease;
}

#wheel-triangle-pointer {
    /* CSS được thay thế bằng SVG inline */
}

#spin-button {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255,98,0,0.3);
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

#spin-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s ease;
}

#spin-button:hover::before {
    left: 100%;
}

#spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#wc-lucky-wheel-result {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.result-content {
    background: #2a231e;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.result-message {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
    margin-bottom: 20px;
}

.coupon-code {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    display: none;
}

.close-result {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-result:hover {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .wc-lucky-wheel-container {
        margin: 0 15px;
        padding: 30px 20px;
    }

    #lucky-wheel-canvas {
        width: 250px;
        height: 250px;
    }

    .wheel-title {
        font-size: 24px;
    }
}

#wheel-pointer {
    display: none !important;
}
.rabattcode.used {
    background-color: #ff092e !important;
    color: #ffffff !important;
    user-select: none;
    cursor: not-allowed;
    opacity: 0.8;
    position: relative;
    display: inline-block;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
