/* Reweb - Retro Web Viewer Styles */

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

html, body {
    height: 100%;
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    background: #c0c0c0;
}

/* Top Navigation Bar */
#topBar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: #c0c0c0;
    border-bottom: 2px solid #808080;
    display: flex;
    align-items: center;
    padding: 2px 8px;
    gap: 8px;
    z-index: 1000;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
}

#logo {
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #000080;
    text-decoration: none;
    padding: 2px 6px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
}

#logo:hover {
    color: #0000ff;
}

#urlForm {
    flex: 1;
    display: flex;
    gap: 4px;
    max-width: 600px;
}

#urlInput {
    flex: 1;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 12px;
    padding: 2px 4px;
    border: 2px inset #c0c0c0;
    background: #fff;
    outline: none;
}

#urlForm button,
#controls button {
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 12px;
    padding: 2px 12px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    cursor: pointer;
}

#urlForm button:active,
#controls button:active {
    border: 2px inset #c0c0c0;
}

#urlForm button:disabled,
#controls button:disabled {
    color: #808080;
    cursor: default;
}

#controls {
    display: flex;
    gap: 2px;
}

#controls button {
    padding: 2px 8px;
    min-width: 28px;
}

#status {
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
    color: #000;
    margin-left: auto;
    padding-right: 4px;
}

/* Content Frame */
#contentFrame {
    margin-top: 32px;
    min-height: calc(100vh - 32px);
    background: #ffffff;
}

#welcome {
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
    font-family: "Times New Roman", Times, serif;
}

#welcome h1 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #000080;
}

#welcome p {
    margin-bottom: 12px;
    line-height: 1.4;
}

#welcome ul {
    margin-left: 24px;
    margin-top: 12px;
}

#welcome li {
    margin-bottom: 6px;
}

/* Rendered Content - Retro/Simplified Style */
#renderedContent {
    display: none;
    background: #ffffff;
    color: #000000;
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.3;
    padding: 16px 20px 24px 20px;
    max-width: 900px;
    margin: 0 auto;
}

#renderedContent.active {
    display: block;
}

/* Override all content styles for retro look */
#renderedContent * {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent !important;
    font-family: inherit;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: none !important;
    animation: none !important;
}

#renderedContent h1,
#renderedContent h2,
#renderedContent h3,
#renderedContent h4,
#renderedContent h5,
#renderedContent h6 {
    font-family: "Times New Roman", Times, serif;
    font-weight: bold;
    margin: 8px 0 4px 0;
    color: #000000;
}

#renderedContent h1 { font-size: 24px; }
#renderedContent h2 { font-size: 20px; }
#renderedContent h3 { font-size: 18px; }
#renderedContent h4 { font-size: 16px; }
#renderedContent h5 { font-size: 14px; }
#renderedContent h6 { font-size: 12px; }

#renderedContent p {
    margin: 4px 0;
}

#renderedContent a {
    color: #0000ff;
    text-decoration: underline;
}

#renderedContent a:visited {
    color: #800080;
}

#renderedContent a:hover {
    color: #ff0000;
}

#renderedContent img {
    max-width: 100%;
    height: auto;
    border: 1px solid #000000;
    margin: 4px 0;
}

#renderedContent ul,
#renderedContent ol {
    margin: 4px 0 4px 24px;
}

#renderedContent li {
    margin: 2px 0;
}

#renderedContent table {
    border-collapse: collapse;
    margin: 4px 0;
}

#renderedContent th,
#renderedContent td {
    border: 1px solid #000000;
    padding: 2px 4px;
    text-align: left;
    vertical-align: top;
}

#renderedContent th {
    background: #c0c0c0 !important;
    font-weight: bold;
}

#renderedContent pre,
#renderedContent code {
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    background: #f0f0f0 !important;
}

#renderedContent pre {
    padding: 4px;
    border: 1px solid #808080;
    overflow-x: auto;
    margin: 4px 0;
}

#renderedContent blockquote {
    margin: 4px 0 4px 20px;
    padding-left: 8px;
    border-left: 2px solid #808080;
    font-style: italic;
}

#renderedContent hr {
    border: none;
    border-top: 1px solid #000000;
    margin: 8px 0;
}

#renderedContent input,
#renderedContent button,
#renderedContent select,
#renderedContent textarea {
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 12px;
    border: 2px inset #c0c0c0;
    background: #ffffff !important;
    padding: 2px 4px;
}

#renderedContent button,
#renderedContent input[type="submit"],
#renderedContent input[type="button"] {
    border: 2px outset #c0c0c0;
    background: #c0c0c0 !important;
    cursor: pointer;
}

/* Hide common modern elements */
#renderedContent nav,
#renderedContent header,
#renderedContent footer,
#renderedContent aside,
#renderedContent .ad,
#renderedContent .advertisement,
#renderedContent .popup,
#renderedContent .modal,
#renderedContent .cookie,
#renderedContent .banner,
#renderedContent [class*="cookie"],
#renderedContent [class*="popup"],
#renderedContent [class*="modal"],
#renderedContent [class*="overlay"],
#renderedContent [class*="newsletter"],
#renderedContent [class*="subscribe"],
#renderedContent [id*="cookie"],
#renderedContent [id*="popup"],
#renderedContent [id*="modal"],
#renderedContent iframe,
#renderedContent video,
#renderedContent audio,
#renderedContent svg {
    display: none !important;
}

/* Loading state */
#renderedContent.loading {
    padding: 20px;
    text-align: center;
    color: #808080;
}

/* Error state */
#renderedContent .error {
    padding: 20px;
    color: #800000;
    font-family: "MS Sans Serif", Arial, sans-serif;
}
