/* Rabbit 加密解密工具专用样式 */

/* 输入区域 */
.rabbit-input-section {
    margin-bottom: 25px;
}

.input-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 15px;
}

.input-label i {
    margin-right: 8px;
    color: #667eea;
}

.rabbit-textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafafa;
}

.rabbit-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: #fff;
}

.rabbit-key-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafafa;
}

.rabbit-key-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: #fff;
}

/* 操作按钮 */
.rabbit-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rabbit-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rabbit-btn i {
    font-size: 18px;
}

.rabbit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rabbit-btn:active {
    transform: translateY(0);
}

.rabbit-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.rabbit-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

.rabbit-btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.rabbit-btn-secondary:hover {
    background: linear-gradient(135deg, #e77ff0 0%, #e14359 100%);
}

.rabbit-btn-outline {
    background: white;
    border: 2px solid #ddd;
    color: #333;
}

.rabbit-btn-outline:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* 结果区域 */
.rabbit-result {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rabbit-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.rabbit-result-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rabbit-result-header h3 i {
    color: #4caf50;
    font-size: 20px;
}

.rabbit-output-textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid #d0d0d0;
    border-radius: 12px;
    background: white;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.6;
    resize: vertical;
    color: #333;
}

.rabbit-output-textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* 隐私提示 */
.privacy-note {
    margin-top: 20px;
    padding: 15px;
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    border-radius: 8px;
    color: #2e7d32;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-note i {
    font-size: 20px;
    color: #4caf50;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .rabbit-actions {
        flex-direction: column;
    }

    .rabbit-btn {
        width: 100%;
        padding: 16px 24px;
    }

    .rabbit-textarea,
    .rabbit-output-textarea {
        min-height: 150px;
        font-size: 13px;
    }

    .rabbit-key-input {
        font-size: 13px;
    }

    .rabbit-result {
        padding: 20px;
    }

    .rabbit-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .rabbit-result-header h3 {
        font-size: 16px;
    }

    .privacy-note {
        font-size: 13px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .rabbit-textarea,
    .rabbit-output-textarea {
        min-height: 120px;
        padding: 12px;
    }

    .rabbit-btn {
        font-size: 14px;
        padding: 14px 20px;
    }

    .input-label {
        font-size: 14px;
    }
}
