* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: #0b0f19;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2.5rem 1rem;
}

.background-glow {
    position: fixed;
    top: -20%;
    left: 30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 960px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #a855f7;
    border-radius: 50%;
    box-shadow: 0 0 8px #a855f7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c084fc 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
}

.subtitle strong {
    color: #38bdf8;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f3f4f6;
}

.pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

.pill-green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.pill-blue {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.pill-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(31, 41, 55, 0.7);
    padding-bottom: 0.5rem;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item .label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.info-item .value {
    font-size: 0.9rem;
    color: #e2e8f0;
}

.code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #0f172a;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    border: 1px solid #1e293b;
    color: #38bdf8;
}

.card-desc {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
}

.code-block-container {
    background: #0b1120;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.85rem;
    overflow-x: auto;
}

.code-block {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    color: #38bdf8;
    white-space: pre;
}

.tip-text {
    font-size: 0.8rem;
    color: #a855f7;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.tool-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tool-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-name {
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #c084fc;
}

.tool-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
}

.tool-params {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
}

.params-label {
    font-size: 0.75rem;
    color: #64748b;
}

.param-tag {
    font-size: 0.72rem;
    background: #1e293b;
    color: #93c5fd;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.test-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.85rem;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .test-form {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.82rem;
    color: #94a3b8;
}

.form-group input {
    background: #0b1120;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    color: #e2e8f0;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #a855f7;
}

.btn {
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    color: #ffffff;
}

.btn-primary:hover {
    filter: brightness(1.15);
}

.response-box {
    background: #0b1120;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.response-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

.time-tag {
    font-family: monospace;
}

#api-result {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    color: #bae6fd;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.footer {
    text-align: center;
    font-size: 0.8rem;
    color: #475569;
}
