/* Code Input Modal Styles */

.btn-code {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.btn-code:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
}

.btn-code:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-verify {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6);
}

.btn-verify:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

/* Code Input Modal */
.code-input-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(5px);
    animation: fadeInModal 0.3s ease-out;
}

.code-input-modal {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInFromBottom 0.3s ease-out;
}

.code-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.code-input-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.close-code-input {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-code-input:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.code-input-content {
    padding: 2rem;
}

.code-input-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.5;
}

.code-input-field {
    margin-bottom: 1.5rem;
}

.code-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

.code-input-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.code-error {
    background: #ffebee;
    color: #c62828;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid #f44336;
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .code-input-modal {
        margin: 0.5rem;
        max-width: 90vw;
    }

    .code-input-content {
        padding: 1.5rem;
    }

    .code-input-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .code-input-modal {
        margin: 1rem;
    }

    .code-input-header {
        padding: 1rem 1.5rem;
    }

    .code-input-header h3 {
        font-size: 20px;
    }

    .close-code-input {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .code-input-content {
        padding: 1rem;
    }

    .code-input-message {
        font-size: 14px;
        margin-bottom: 1rem;
    }

    .code-input {
        font-size: 16px;
        padding: 0.75rem;
    }
}