/* 表单标签 */
.friendly-link-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* 表单输入框 */
.friendly-link-form input[type="text"],
.friendly-link-form input[type="url"],
.friendly-link-form input[type="email"],
.friendly-link-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}


/* 提交按钮 */
.friendly-link-form input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.friendly-link-form input[type="submit"]:hover {
    background-color: #00578c;
}

/* 自动获取 TDK 按钮 */
.friendly-link-form #get_tdk_button {
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-left: 10px;
}

.friendly-link-form #get_tdk_button:hover {
    background-color: #218838;
}

/* 图标预览 */
.friendly-link-form #favicon_preview {
    max-width: 32px;
    display: inline-block;
    margin-top: 5px;
}

/* 隐藏字段 */
.friendly-link-form input[type="hidden"] {
    display: none;
}

.message {
    display: none;
}

.success-message, .error-message {
    padding: 20px;
    margin-top: 20px;
    border-radius: 12px;
    font-size: 16px;
    color: #fff; /* 默认文本颜色为白色 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.success-message {
    background: linear-gradient(135deg, #28a745, #218838);
    border: 1px solid #218838;
    color: #fff !important;
}

.error-message {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: 1px solid #c82333;
    color: #fff !important; 
}

.message-icon {
    display: flex;
    align-items: center;
}

.message-icon i {
    margin-right: 10px;
    font-size: 20px;
}

.message-content {
    flex-grow: 1;
}

.message-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.message-close:hover {
    background: rgba(255, 255, 255, 0.2);
}