/* Configuration Proxy Home - Retro Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 12px;
    line-height: 1.2;
    color: black;
    background: #008080 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2"><rect width="1" height="1" fill="%23006060"/><rect x="1" y="1" width="1" height="1" fill="%23006060"/></svg>') repeat; /* Retro dithered pattern */
    min-height: 100vh;
    padding: 8px;
    cursor: default;
}

.container {
    width: calc(100vw - 32px);
    height: calc(100vh - 32px);
    margin: 8px auto;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow: 4px 4px 0px #808080, 2px 2px 0px #404040;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(90deg, #000080, #0000c0, #000080);
    color: white;
    padding: 3px;
    border-bottom: 1px solid #808080;
}

header h1 {
    font-size: 15px;
    margin: 4px;
    font-weight: bold;
    text-shadow: 1px 1px 0px #000080;
}

header p {
    font-size: 12px;
    margin: 2px 4px 4px 4px;
}

main {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

section {
    border: 1px inset #c0c0c0;
    padding: 6px;
    background: #c0c0c0;
}

.response-section {
    flex: 2; /* Give more space to response section */
    min-height: 200px;
}

h2 {
    color: black;
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    background: #c0c0c0;
    padding: 2px;
}

.endpoints {
    display: block;
}

.endpoint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
    margin: 2px 0;
}

.btn {
    background: #c0c0c0;
    color: black;
    border: 1px outset #c0c0c0;
    padding: 5px 14px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    cursor: pointer;
    min-width: 100px;
    box-shadow: 1px 1px 0px #808080;
}

.btn:hover {
    background: #e0e0e0;
}

.btn:active {
    border: 1px inset #c0c0c0;
    background: #a0a0a0;
}

code {
    background: white;
    padding: 3px 5px;
    font-family: 'Courier New', monospace;
    color: black;
    border: 1px inset #c0c0c0;
    flex: 1;
    font-size: 11px;
}

#response-output {
    background: #000080; /* Classic DOS blue */
    color: #ffff00; /* Bright yellow text */
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    overflow-x: auto;
    overflow-y: auto;
    white-space: pre-wrap;
    min-height: 150px;
    max-height: 60vh; /* Responsive to viewport */
    height: auto;
    border: 2px inset #c0c0c0;
    margin: 4px 0;
    flex: 1;
    resize: vertical; /* Allow manual resize */
}

.info-section ul {
    list-style: none;
    padding-left: 8px;
    font-size: 11px;
}

.info-section li {
    padding: 2px 0;
    border-bottom: 1px dotted #808080;
}

.info-section li:last-child {
    border-bottom: none;
}

.info-section strong {
    font-weight: bold;
}

/* Loading animation - Windows 95 style */
.loading {
    background: #808080 !important;
    color: white !important;
}

/* Windows 95 scrollbars */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
}

::-webkit-scrollbar-thumb:hover {
    background: #e0e0e0;
}

::-webkit-scrollbar-corner {
    background: #c0c0c0;
}

/* Windows 95 title bar style */
.window-title {
    background: linear-gradient(90deg, #0080ff, #004080);
    color: white;
    padding: 2px 4px;
    font-size: 11px;
    font-weight: bold;
}

/* Status bar at bottom */
.status-bar {
    background: #c0c0c0;
    border-top: 1px inset #c0c0c0;
    padding: 4px 8px;
    font-size: 11px;
    text-align: left;
}

footer {
    background: #c0c0c0;
    border-top: 1px inset #c0c0c0;
    padding: 3px 6px;
    font-size: 11px;
    text-align: center;
    margin-top: auto;
}

footer p {
    margin: 0;
    color: black;
}

/* Retro scan lines effect */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.03) 2px,
        rgba(255,255,255,0.03) 4px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Retro focus outlines */
.btn:focus {
    outline: 1px dotted black;
    outline-offset: -2px;
}

/* 90s cursor */
.btn {
    cursor: pointer;
}

.btn:disabled {
    color: #808080;
    cursor: not-allowed;
}