/* CSS riêng cho trang index */
.input-with-button {
    position: relative;
}

#inputLink {
    padding-right: 60px; /* Để tránh text bị che bởi nút xóa */
}

.button-group button {
    background-color: #ee4d2d;
    transition: all 0.3s;
}

.button-group button:hover {
    background-color: #f76b5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#pasteBtn {
    background-color: #ee4d2d;
}

#convertBtn {
    background-color: #ee4d2d;
}

#copyBtn {
    background-color: #ee4d2d;
    width: 100%;
    max-width: 150px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

#copyBtn:hover {
    background-color: #f76b5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.stay-button-wrapper {
    margin-top: 20px;
    text-align: center;
}

#stayBtn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 250px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#stayBtn i {
    margin-right: 8px;
}

#stayBtn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Định dạng cho input-with-copy */
.input-with-copy {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-copy input {
    flex: 1;
}

/* Responsive styles */
@media (max-width: 768px) {
    .input-with-copy {
        flex-direction: column;
        gap: 15px;
    }
    
    .button-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 15px;
    }
    
    #copyBtn {
        width: 100%;
        max-width: 100%;
    }
    
    .button-group {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }
    
    .button-group button {
        flex: 1;
    }
}

/* CSS cho nút TikTok */
.btn-tiktok {
    background: linear-gradient(90deg, #25F4EE, #FE2C55, #000000);
    background-size: 300% 100%;
    animation: gradient-animation 5s ease infinite;
    color: white !important;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(254, 44, 85, 0.4);
    margin: 15px auto;
    max-width: 300px;
    text-align: center;
}

@keyframes gradient-animation {
    0% {background-position: 0 50%}
    50% {background-position: 100% 50%}
    100% {background-position: 0 50%}
}

.btn-tiktok i {
    margin-right: 8px;
    font-size: 16px;
}

.btn-tiktok:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(254, 44, 85, 0.6);
    background-size: 200% 100%;
}

/* CSS responsive cho nút TikTok trên màn hình điện thoại */
@media (max-width: 768px) {
    .btn-tiktok {
        width: 100%;
        max-width: 300px;
    }
    
    /* Ghi đè quy tắc ẩn .menu-text trên main.css */
    .btn-tiktok .menu-text {
        display: inline !important;
    }
}
