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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafb;
    color: #1a2b3c;
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    margin-bottom: 24px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
}

.back-button:hover {
    color: #1a2b3c;
}

.back-button svg {
    width: 18px;
    height: 18px;
}

/* Title Section */
.title-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
}

.logo-circles {
    position: absolute;
    right: -45px;
    top: 50%;
    transform: translateY(-50%);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
}

.logo-new,
.logo-cycle {
    font-size: 28px;
    font-weight: 700;
    color: #1a2b3c;
    letter-spacing: -1px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a2b3c;
    margin-left: 40px;
}

/* Card */
.card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #e8eef3;
    margin-bottom: 24px;
}

.card-header {
    margin-bottom: 28px;
}

.card-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a2b3c;
    margin-bottom: 8px;
}

.card-header p {
    font-size: 14px;
    color: #64748b;
}

/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.select-wrapper,
.input-wrapper {
    position: relative;
}

.select-wrapper select,
.input-wrapper input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid #d1dbe5;
    border-radius: 10px;
    background-color: #fff;
    color: #1a2b3c;
    appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.select-wrapper select:focus,
.input-wrapper input:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.select-wrapper select:hover,
.input-wrapper input:hover {
    border-color: #94a3b8;
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.flag-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.input-wrapper input {
    padding-right: 50px;
}

.form-hint {
    font-size: 13px;
    color: #64748b;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: linear-gradient(135deg, #0f3d3e 0%, #1a5c5e 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 61, 62, 0.3);
}

.submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Result Card */
.result-card {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payload-section,
.response-section {
    margin-top: 20px;
}

.payload-section h3,
.response-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.code-block {
    background: #f8fafb;
    border: 1px solid #e8eef3;
    border-radius: 10px;
    padding: 16px;
    overflow-x: auto;
}

.code-block pre {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

/* Response status indicator */
.response-section.success .code-block {
    border-color: #10b981;
    background: #f0fdf4;
}

.response-section.error .code-block {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Divider line like in the image */
.result-card::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #ef4444 50%, transparent 100%);
    margin-top: 24px;
    border-radius: 2px;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid #e8eef3;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #0d9488;
}

.footer-links .separator {
    color: #d1dbe5;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .container {
        padding: 16px;
    }

    .title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-title {
        margin-left: 0;
        font-size: 20px;
    }

    .card {
        padding: 24px;
    }

    .logo-new,
    .logo-cycle {
        font-size: 24px;
    }
}

