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

body {
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.8;
    color: #2d3748;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #667eea;
}

.icon svg {
    width: 24px;
    height: 24px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

input[type="text"], input[type="url"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    transition: all 0.3s;
    direction: ltr;
    text-align: left;
}

input[type="text"]:focus, input[type="url"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #edf2f7;
    color: #4a5568;
    padding: 8px 16px;
    font-size: 0.95rem;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #e2e8f0;
    box-shadow: none;
}

.examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    display: none;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result.success {
    background: #f0fff4;
    border: 2px solid #68d391;
    display: block;
}

.result.error {
    background: #fff5f5;
    border: 2px solid #fc8181;
    display: block;
}

.result-row {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #cbd5e0;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #4a5568;
    min-width: 100px;
}

.result-value {
    color: #2d3748;
    flex: 1;
    direction: ltr;
    text-align: left;
    font-family: 'Courier New', monospace;
}

.result-value.text {
    direction: rtl;
    text-align: right;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #2d3748;
}

.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    background: #edf2f7;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.3s;
}

.tab.active {
    background: #2d3748;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

pre {
    background: #1a202c;
    color: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4a5568;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.copy-btn:hover {
    background: #667eea;
}

.copy-btn svg {
    width: 12px;
    height: 12px;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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

.endpoint-box {
    background: #f7fafc;
    padding: 12px 16px;
    border-radius: 8px;
    border-right: 4px solid #667eea;
    font-family: 'Courier New', monospace;
    direction: ltr;
    text-align: left;
    margin-bottom: 15px;
    word-break: break-all;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.param-table th, .param-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #e2e8f0;
}

.param-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-required {
    background: #fed7d7;
    color: #c53030;
}

.badge-get {
    background: #c6f6d5;
    color: #22543d;
}

.footer {
    text-align: center;
    color: white;
    padding: 20px;
    opacity: 0.9;
}

.sample-box {
    margin-top: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.sample-box strong {
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .header h1 { font-size: 1.6rem; }
    .card { padding: 20px; }
    .result-row { flex-direction: column; gap: 4px; }
    .result-label { min-width: auto; }
}