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

body {
    font-family: 'MS Sans Serif', sans-serif;
    background: #c0c0c0;
    overflow: hidden;
}

.ie-window {
    width: 100vw;
    height: 100vh;
    border: 2px outset #c0c0c0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.ie-titlebar {
    height: 18px;
    background: linear-gradient(to bottom, #0a246a 0%, #a6caf0 3%, #0a246a 6%, #0a246a 94%, #a6caf0 97%, #0a246a 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px;
    color: white;
    font-size: 11px;
    font-weight: bold;
    font-family: 'MS Sans Serif', sans-serif;
}

.ie-title {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ie-icon {
    width: 14px;
    height: 14px;
}

.ie-controls {
    display: flex;
    gap: 2px;
}

.ie-controls button {
    width: 16px;
    height: 14px;
    background: linear-gradient(to bottom, #dfdfdf, #c0c0c0);
    border: 1px outset #c0c0c0;
    font-size: 8px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'MS Sans Serif', sans-serif;
}

.ie-controls button:active {
    border: 1px inset #c0c0c0;
}

.ie-toolbar {
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
    border-bottom: 1px solid #808080;
    padding: 2px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.ie-menu {
    display: flex;
    gap: 15px;
    padding: 4px 8px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
}

.ie-menu span {
    cursor: pointer;
    padding: 4px 8px;
    border: 1px solid transparent;
}

.ie-menu span:hover {
    background: linear-gradient(to bottom, #e0e0e0, #d0d0d0);
    border: 1px outset #c0c0c0;
}

.ie-buttons {
    display: flex;
    gap: 1px;
    padding: 4px 8px;
    margin-top: 2px;
}

.ie-btn {
    padding: 4px 12px;
    background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
    border: 1px outset #c0c0c0;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    cursor: pointer;
}

.ie-btn:hover {
    background: linear-gradient(to bottom, #f5f5f5, #d5d5d5);
}

.ie-btn:active {
    border: 1px inset #c0c0c0;
    background: linear-gradient(to bottom, #d0d0d0, #f0f0f0);
}

.ie-address {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    margin-top: 2px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    position: relative;
}

.ie-address input {
    flex: 1;
    padding: 3px 4px;
    border: 1px inset #c0c0c0;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    background: white;
}

.ie-loading-gif {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.ie-loading-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.ie-content {
    flex: 1;
    background: white;
    overflow: auto;
    padding: 20px;
}

.ie-status {
    height: 18px;
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
    border-top: 1px solid #808080;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.ie-status::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.5);
}

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

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

.header h1 {
    font-family: 'Comic Sans MS', cursive;
    color: #0000ff;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.header p {
    font-size: 14px;
    color: #666;
}

.controls {
    background: linear-gradient(to bottom, #f0f0f0, #e8e8e8);
    border: 2px inset #c0c0c0;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
}

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

.control-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    color: #000;
}

.control-group select,
.control-group input[type="text"] {
    width: 100%;
    padding: 3px 4px;
    border: 1px inset #c0c0c0;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    background: white;
}

.control-group select:focus,
.control-group input[type="text"]:focus {
    outline: 1px dotted #000;
}

.control-group input[type="checkbox"] {
    margin-right: 5px;
}

.generate-btn {
    background: linear-gradient(to bottom, #dfdfdf, #c0c0c0);
    border: 1px outset #c0c0c0;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: bold;
    font-family: 'MS Sans Serif', sans-serif;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.generate-btn:hover {
    background: linear-gradient(to bottom, #e5e5e5, #c5c5c5);
}

.generate-btn:active {
    border: 1px inset #c0c0c0;
    background: linear-gradient(to bottom, #c0c0c0, #dfdfdf);
}

.generate-btn:disabled {
    background: linear-gradient(to bottom, #e0e0e0, #d0d0d0);
    color: #999;
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 40px;
    background: linear-gradient(to bottom, #f0f0f0, #e8e8e8);
    border: 2px inset #c0c0c0;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-bar {
    width: 200px;
    height: 20px;
    background: white;
    border: 1px inset #c0c0c0;
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #0000ff, #0080ff);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

.loading-text {
    font-size: 12px;
    color: #666;
}

.preview-container {
    background: linear-gradient(to bottom, #f0f0f0, #e8e8e8);
    border: 2px inset #c0c0c0;
    padding: 10px;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.preview-controls {
    display: flex;
    gap: 5px;
}

.regenerate-btn,
.download-btn {
    background: linear-gradient(to bottom, #dfdfdf, #c0c0c0);
    border: 1px outset #c0c0c0;
    padding: 4px 12px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    cursor: pointer;
}

.regenerate-btn:hover,
.download-btn:hover {
    background: linear-gradient(to bottom, #e5e5e5, #c5c5c5);
}

.regenerate-btn:active,
.download-btn:active {
    border: 1px inset #c0c0c0;
    background: linear-gradient(to bottom, #c0c0c0, #dfdfdf);
}

.download-btn {
    background: linear-gradient(to bottom, #e0ffe0, #c0ffc0);
}

.download-btn:hover {
    background: linear-gradient(to bottom, #e5ffe5, #c5ffc5);
}

.preview-frame {
    width: 100%;
    height: 400px;
    border: 1px inset #c0c0c0;
    background: white;
}

.preview-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Scrollbar styling for IE-like appearance */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #dfdfdf, #c0c0c0);
    border: 1px outset #c0c0c0;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e5e5e5, #c5c5c5);
}

::-webkit-scrollbar-thumb:active {
    border: 1px inset #c0c0c0;
    background: linear-gradient(to bottom, #c0c0c0, #dfdfdf);
}

::-webkit-scrollbar-corner {
    background: #c0c0c0;
}

::-webkit-scrollbar-button {
    width: 16px;
    height: 16px;
    background: linear-gradient(to bottom, #dfdfdf, #c0c0c0);
    border: 1px outset #c0c0c0;
}

::-webkit-scrollbar-button:hover {
    background: linear-gradient(to bottom, #e5e5e5, #c5c5c5);
}

::-webkit-scrollbar-button:active {
    border: 1px inset #c0c0c0;
    background: linear-gradient(to bottom, #c0c0c0, #dfdfdf);
}