/* Global styles */
ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

.preview-container {
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 1rem;
    min-height: 100px;
    background: white;
}

.preview-container:empty::before {
    content: attr(data-placeholder);
    color: #9ca3af;
}

#fullscreenModal {
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#fullscreenModal.hidden {
    opacity: 0;
    pointer-events: none;
}

#fullscreenModal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

#fullscreenTextarea, #fullscreenOutput {
    height: calc(100vh - 80px);
    resize: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 响应式设计调整 */
@media (max-width: 480px) {
    #frameworkSelector {
        max-width: 140px;
        font-size: 0.75rem;
    }
    #frameworkSelectorLabel {
        font-size: 0.75rem;
    }
}

/* 功能按钮样式 */
.action-button {
    width: 10.8%;
    min-width: 95px;
    margin-right: 2px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
    padding: 5px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
    font-size: 0.9rem;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

.action-button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
    z-index: -1;
}

.action-button:hover::before {
    transform: translateX(100%);
}

/* 按钮类型样式 */
.btn-escape {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
}

.btn-unescape {
    background: linear-gradient(135deg, #10b981, #065f46);
    color: white;
}

.btn-js {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: white;
}

.btn-url {
    background: linear-gradient(135deg, #8b5cf6, #5b21b6);
    color: white;
}

.btn-url-decode {
    background: linear-gradient(135deg, #ec4899, #9d174d);
    color: white;
}

.btn-base64 {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: white;
}

.btn-base64-decode {
    background: linear-gradient(135deg, #f97316, #9a3412);
    color: white;
}

.btn-format {
    background: linear-gradient(135deg, #6366f1, #4338ca);
    color: white;
}

.btn-minify {
    background: linear-gradient(135deg, #ef4444, #991b1b);
    color: white;
}

/* 响应式调整按钮宽度 */
@media (min-width: 1280px) {
    .action-button {
        width: 11%;
        font-size: 1rem;
    }
}

@media (max-width: 1200px) {
    .action-button {
        width: 120px;
        margin-right: 6px;
    }
}

@media (max-width: 640px) {
    .action-button {
        width: calc(50% - 8px);
    }
}

@media (max-width: 360px) {
    .action-button {
        width: 100%;
        margin-right: 0;
    }
} 