/* Modern Vue-style UI for Reply Reward Plugin */
:root {
    --zrr-primary: #ff6b1e;
    --zrr-primary-hover: #ff8a4d;
    --zrr-bg: #fff;
    --zrr-border: #ebeef5;
    --zrr-text: #606266;
    --zrr-text-main: #303133;
    --zrr-text-secondary: #909399;
    --zrr-success: #67c23a;
    --zrr-radius: 4px;
    --zrr-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.zrr-wrapper {
    background: var(--zrr-bg);
    border: 1px solid var(--zrr-border);
    border-radius: var(--zrr-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    padding: 15px;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px;
    color: var(--zrr-text);
    transition: all 0.3s;
    margin-bottom: 15px;
}

.zrr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--zrr-border);
}

.zrr-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--zrr-text-main);
    display: flex;
    align-items: center;
}

.zrr-title i {
    margin-right: 8px;
    color: var(--zrr-primary);
}

/* Switch Component */
.zrr-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    cursor: pointer;
}

.zrr-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.zrr-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dcdfe6;
    transition: .4s;
    border-radius: 20px;
}

.zrr-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .zrr-slider {
    background-color: var(--zrr-primary);
}

input:checked + .zrr-slider:before {
    transform: translateX(20px);
}

/* Form Elements */
.zrr-form-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zrr-label {
    font-size: 14px;
    color: var(--zrr-text);
}

.zrr-input-group {
    display: flex;
    background: #f5f7fa;
    border-radius: var(--zrr-radius);
    padding: 3px;
}

.zrr-btn-option {
    padding: 6px 15px;
    cursor: pointer;
    border-radius: var(--zrr-radius);
    font-size: 12px;
    transition: all 0.3s;
    color: var(--zrr-text);
}

.zrr-btn-option:hover {
    color: var(--zrr-primary);
}

.zrr-btn-option.active {
    background: #fff;
    color: var(--zrr-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: bold;
}

.zrr-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--zrr-border);
    border-radius: var(--zrr-radius);
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.zrr-input:focus {
    border-color: var(--zrr-primary);
    outline: none;
}

.zrr-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--zrr-border);
    border-radius: var(--zrr-radius);
    font-size: 14px;
    min-height: 80px;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.zrr-textarea:focus {
    border-color: var(--zrr-primary);
    outline: none;
}

.zrr-helper {
    font-size: 12px;
    color: var(--zrr-text-secondary);
    margin-top: 4px;
}

/* Tags */
.zrr-tags {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zrr-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #f0f2f5;
    color: var(--zrr-text-secondary);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.zrr-tag:hover {
    color: var(--zrr-primary);
    background: #fffbf0;
    border-color: #ffecd9;
}

.zrr-config-panel {
    border-top: 1px dashed var(--zrr-border);
    padding-top: 15px;
    margin-top: 10px;
}

.zrr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.zrr-money-input {
    border: none;
    border-bottom: 1px solid var(--zrr-border);
    text-align: right;
    width: 80px;
    font-size: 16px;
    color: var(--zrr-primary);
    padding: 5px;
    background: transparent;
}

.zrr-money-input:focus {
    border-bottom-color: var(--zrr-primary);
    outline: none;
}

/* Animation */
.zrr-slide-enter-active, .zrr-slide-leave-active {
    transition: all 0.3s ease;
    max-height: 500px;
    overflow: hidden;
}
.zrr-slide-enter, .zrr-slide-leave-to {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
}
