/* ========================================
   DRAGON WHEEL THEME - ENHANCED STYLING
   ======================================== */

/* ===== BUTTON STYLING - DRAGON THEME ===== */

/* Primary Spin Button - Dark Cyan Dragon Theme */
button.submit {
    font-family: 'Lilita One', cursive;
    font-size: 20px;
    font-weight: 700;
    width: 100%;
    background: linear-gradient(145deg, #008B8B 0%, #20B2AA 25%, #48D1CC 50%, #00CED1 75%, #006666 100%);
    border: 3px solid #FFD700;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    padding: 12px 20px;
    border-radius: 35px;
    box-shadow: 
        0 8px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 5px rgba(0, 139, 139, 0.6),
        0 0 20px rgba(0, 139, 139, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button.submit:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

button.submit:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(0, 139, 139, 0.8),
        0 0 30px rgba(0, 139, 139, 0.6);
    background: linear-gradient(145deg, #20B2AA 0%, #48D1CC 25%, #00CED1 50%, #40E0D0 75%, #008B8B 100%);
    border-color: #FFE135;
}

button.submit:hover:before {
    opacity: 1;
    left: 100%;
}

button.submit:active {
    transform: translateY(1px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(0, 139, 139, 0.4);
}

/* Input Submit Buttons - Dragon Theme Dark Cyan */
input.submit {
    font-family: 'Lilita One', cursive;
    font-size: 20px;
    font-weight: 700;
    width: 100%;
    background: linear-gradient(135deg, #008B8B 0%, #20B2AA 25%, #48D1CC 50%, #00CED1 75%, #006666 100%);
    border: 3px solid #FFD700;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 215, 0, 0.3),
        0 0 15px rgba(0, 139, 139, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

input.submit:hover {
    background: linear-gradient(135deg, #20B2AA 0%, #48D1CC 25%, #00CED1 50%, #40E0D0 75%, #008B8B 100%);
    transform: translateY(-1px);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.25),
        inset 0 2px 4px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(0, 139, 139, 0.6);
    color: #FFF;
    border-color: #FFE135;
}

/* Link Submit Buttons - Dragon Theme Dark Cyan */
a.submit {
    font-family: 'Lilita One', cursive;
    font-size: 24px;
    font-weight: 900;
    width: 100%;
    background: linear-gradient(145deg, #008B8B 0%, #20B2AA 25%, #48D1CC 50%, #00CED1 75%, #006666 100%);
    border: 3px solid #FFD700;
    color: #FFFFFF !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    padding: 12px 20px;
    border-radius: 35px;
    box-shadow: 
        0 8px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 5px rgba(0, 139, 139, 0.6),
        0 0 20px rgba(0, 139, 139, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
}

a.submit:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(0, 139, 139, 0.8),
        0 0 30px rgba(0, 139, 139, 0.6);
    background: linear-gradient(145deg, #20B2AA 0%, #48D1CC 25%, #00CED1 50%, #40E0D0 75%, #008B8B 100%);
    border-color: #FFE135;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

a.submit:active {
    transform: translateY(1px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(0, 139, 139, 0.4);
}

a.submit:visited,
a.submit:link {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* Back Button - Dark Cyan Dragon Theme */
.btn-back {
    font-family: 'Lilita One', cursive;
    font-size: 22px;
    font-weight: 800;
    width: 100%;
    background: linear-gradient(135deg, #003333 0%, #004D4D 25%, #006666 50%, #008080 75%, #20B2AA 100%);
    border: 2px solid #00CED1;
    color: #FFD700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(0, 139, 139, 0.3),
        0 0 15px rgba(0, 206, 209, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-back:hover {
    background: linear-gradient(135deg, #004D4D 0%, #006666 25%, #008080 50%, #20B2AA 75%, #48D1CC 100%);
    transform: translateY(-1px);
    color: #FFFFFF;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(0, 139, 139, 0.5),
        0 0 20px rgba(0, 206, 209, 0.5);
    border-color: #40E0D0;
}

/* ===== MODAL BUTTON STYLING - DRAGON THEME ===== */

/* History Modal Close Button */
.btn-primary {
    font-family: 'Lilita One', cursive !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #008B8B 0%, #20B2AA 25%, #48D1CC 50%, #00CED1 75%, #006666 100%) !important;
    border: 2px solid #FFD700 !important;
    color: #FFFFFF !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 3px rgba(255, 215, 0, 0.3),
        0 0 10px rgba(0, 139, 139, 0.4) !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #20B2AA 0%, #48D1CC 25%, #00CED1 50%, #40E0D0 75%, #008B8B 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 3px rgba(255, 215, 0, 0.5),
        0 0 15px rgba(0, 139, 139, 0.5) !important;
    border-color: #FFE135 !important;
}

.btn-primary:focus, .btn-primary:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Terms and History Modal Content Styling */
.terms-modal {
    border: 3px solid #008B8B !important;
    border-radius: 15px !important;
}

.terms-title {
    color: #008B8B !important;
    font-weight: bold !important;
}

.terms-content {
    background: rgba(0, 139, 139, 0.1) !important;
}

.terms-confirm-btn {
    background: linear-gradient(135deg, #008B8B 0%, #20B2AA 25%, #48D1CC 50%, #00CED1 75%, #006666 100%) !important;
    border: 2px solid #FFD700 !important;
    color: #FFFFFF !important;
    font-family: 'Lilita One', cursive !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
    border-radius: 25px !important;
}

.terms-confirm-btn:hover {
    background: linear-gradient(135deg, #20B2AA 0%, #48D1CC 25%, #00CED1 50%, #40E0D0 75%, #008B8B 100%) !important;
    border-color: #FFE135 !important;
}

/* ===== RESPONSIVE BUTTON STYLING ===== */
@media (max-width: 768px) {
    button.submit, input.submit, .btn-back {
        font-size: 18px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    button.submit, input.submit, .btn-back {
        font-size: 16px;
        padding: 8px 14px;
    }
}

/* ===== BUTTON ICONS (Optional Enhancement) ===== */
button.submit:after {
    content: '';
    margin-left: 10px;
    font-size: 1.2em;
}

input.submit[value="RIWAYAT"]:after {
    content: '';
    margin-left: 8px;
}

input.submit[value*="Syarat"]:after {
    content: '📋';
    margin-left: 8px;
}

.btn-back:after {
    content: '🌐';
    margin-left: 8px;
}

/* ===== BUTTON LOADING STATE ===== */
.submit.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.submit.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== FOCUS ACCESSIBILITY ===== */
button.submit:focus, input.submit:focus, .btn-back:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}