@charset "utf-8";

@import url("tool-combobox.css");
@import url("tool-loading.css");

.tool-page {
    margin: 0 auto;
    padding: 28px 50px 40px;
    animation: pageIn 0.4s ease;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-page__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.tool-page__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.tool-page__icon--purple { background: linear-gradient(135deg, #667eea, #6c5ce7); }
.tool-page__icon--blue { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.tool-page__icon--green { background: linear-gradient(135deg, #55efc4, #00b894); }
.tool-page__icon--orange { background: linear-gradient(135deg, #fdcb6e, #e17055); }
.tool-page__icon--pink { background: linear-gradient(135deg, #fd79a8, #e84393); }
.tool-page__icon--teal { background: linear-gradient(135deg, #81ecec, #00cec9); }
.tool-page__icon--indigo { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }
.tool-page__icon--cyan { background: linear-gradient(135deg, #74ebd5, #00a8cc); }
.tool-page__icon--amber { background: linear-gradient(135deg, #f6d365, #fda085); }
.tool-page__icon--violet { background: linear-gradient(135deg, #a18cd1, #7c5cbf); }
.tool-page__icon--red { background: linear-gradient(135deg, #ff7675, #d63031); }
.tool-page__icon--api { background: linear-gradient(135deg, #a8b8ff, #6c5ce7); }

.tool-page__head h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.tool-page__head p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.tool-placeholder {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px 28px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.tool-placeholder i {
    font-size: 40px;
    color: #dfe6e9;
    margin-bottom: 14px;
}

.tool-placeholder h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.tool-placeholder p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

html.is-embed {
    height: 100%;
    min-height: 100vh;
}

html.is-embed body {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

html.is-embed .tool-page--fill {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    padding: 20px 50px 20px;
    overflow: hidden;
    box-sizing: border-box;
}

html.is-embed .tool-page--fill .tool-page__head,
html.is-embed .tool-page--fill > .tool-card,
html.is-embed .tool-page--fill > .tool-hint,
html.is-embed .tool-page--fill > .tool-status {
    flex-shrink: 0;
}

html.is-embed .tool-panels--grow {
    flex: 1;
    min-height: 0;
    margin-bottom: 0;
}

html.is-embed .tool-panels--grow .tool-panel {
    min-height: 0;
    height: 100%;
}

html.is-embed .tool-panels--grow .tool-panel textarea.form-control {
    flex: 1;
    min-height: 0;
    height: auto;
    resize: none;
}

html.is-embed .tool-panels--grow .tool-panel .json-viewer-wrap {
    flex: 1;
    min-height: 0;
}

html.is-embed .tool-page--fill > .tool-hint {
    margin-top: 10px;
    margin-bottom: 0;
}

html.is-embed .tool-page--fill > .tool-status {
    margin-top: 10px;
}

html.is-embed .tool-page--fill.tool-page--scroll {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

html.is-embed .tool-page--fill.tool-page--scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

html.is-embed .tool-page--fill.tool-page--scroll::-webkit-scrollbar-track {
    background: transparent;
}

html.is-embed .tool-page--fill.tool-page--scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

html.is-embed .tool-page--fill.tool-page--scroll::-webkit-scrollbar-thumb:hover {
    background: #888;
}
