/* SecLife CMS - Retro Windows Theme */
body {
    background-color: #008080; /* Windows 95/98 Teal */
    color: #000000;
    font-family: "MS Sans Serif", "Tahoma", "Geneva", sans-serif;
    font-size: 12px; /* Classic small font size */
    margin: 0;
    padding: 20px; /* Desktop padding */
    overflow: hidden; /* Prevent scrollbars unless content forces it */
}

a {
    color: #0000FF;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.desktop-icon {
    display: inline-block;
    width: 80px;
    text-align: center;
    margin: 10px;
    cursor: pointer;
    vertical-align: top;
}
.desktop-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
}
.desktop-icon span {
    display: block;
    background-color: transparent;
    color: #FFFFFF;
    padding: 2px;
    word-wrap: break-word;
}
.desktop-icon:hover span, .desktop-icon.selected span {
    background-color: #000080; /* Dark blue selection */
    color: #FFFFFF;
}


/* Window Style */
.window {
    background-color: #C0C0C0; /* Classic Windows Grey */
    border: 2px solid;
    border-top-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-right-color: #808080;
    border-bottom-color: #808080;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    min-width: 300px;
    max-width: 800px;
    margin: 20px auto; /* Center window for now */
    position: relative; /* For absolute positioning of close button */
}

.window-title-bar {
    background-color: #000080; /* Classic Windows Blue Title Bar */
    color: #FFFFFF;
    padding: 3px 5px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default; /* No dragging for this simple version */
}
.window-title-bar .title {
    margin-left: 3px;
}
.window-title-bar .window-controls button {
    background-color: #C0C0C0;
    border: 1px solid;
    border-top-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-right-color: #808080;
    border-bottom-color: #808080;
    color: #000000;
    font-family: "Marlett", "Webdings"; /* For symbols, if available */
    font-size: 10px;
    padding: 0 3px;
    margin-left: 2px;
    width: 16px;
    height: 14px;
    line-height: 10px;
}
.window-title-bar .window-controls button:active {
    border-top-color: #808080;
    border-left-color: #808080;
    border-right-color: #FFFFFF;
    border-bottom-color: #FFFFFF;
}
/* Using text for close button if Marlett not reliable */
.close-button::before { content: "X"; font-family: "MS Sans Serif", Tahoma; font-weight: bold;}


.window-content {
    padding: 10px;
    background-color: #FFFFFF; /* White content area */
    border: 1px solid #808080; /* Inner border */
    margin: 2px; /* Space from outer frame */
    min-height: 200px;
    overflow-y: auto; /* Scroll if content overflows */
    max-height: 70vh;
}

.window-content h1, .window-content h2 {
    margin-top: 0;
    border-bottom: 1px solid #C0C0C0;
    padding-bottom: 5px;
}
.window-content img.featured-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border: 1px solid #808080;
}
.window-content .post-meta {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
}

/* Buttons */
.win-button {
    background-color: #C0C0C0;
    border: 2px solid;
    border-top-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-right-color: #808080;
    border-bottom-color: #808080;
    padding: 5px 15px;
    min-width: 75px;
    text-align: center;
    cursor: pointer;
}
.win-button:active, .win-button.active {
    border-top-color: #808080;
    border-left-color: #808080;
    border-right-color: #FFFFFF;
    border-bottom-color: #FFFFFF;
    padding: 6px 14px 4px 16px; /* Sunken effect */
}
.win-button.primary {
    font-weight: bold; /* Often default buttons were bold */
}


/* Forms */
.form-group {
    margin-bottom: 10px;
}
.form-group label {
    display: block;
    margin-bottom: 3px;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    background-color: #FFFFFF;
    border: 1px solid #808080; /* Sunken border */
    padding: 4px;
    width: calc(100% - 10px); /* Adjust for padding */
    font-family: "MS Sans Serif", "Tahoma", sans-serif;
    font-size: 12px;
}
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 1px dotted #000000; /* Classic focus outline */
    outline-offset: -1px;
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Taskbar (very basic) */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #C0C0C0;
    border-top: 2px solid #FFFFFF;
    padding: 3px;
    display: flex;
    align-items: center;
    z-index: 1000;
    height: 30px; /* Approximate taskbar height */
}
.taskbar .start-button {
    background-color: #C0C0C0;
    border: 2px solid;
    border-top-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-right-color: #808080;
    border-bottom-color: #808080;
    padding: 2px 8px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.taskbar .start-button img { /* Windows logo */
    width: 16px;
    height: 16px;
    margin-right: 5px;
}
.taskbar .start-button:active {
    border-top-color: #808080;
    border-left-color: #808080;
    border-right-color: #FFFFFF;
    border-bottom-color: #FFFFFF;
}
.taskbar .clock {
    margin-left: auto;
    padding: 3px 8px;
    border: 1px solid #808080; /* Sunken panel */
    border-right-color: #FFFFFF;
    border-bottom-color: #FFFFFF;
    background-color: #C0C0C0;
    font-size: 11px;
}

/* Flash Messages */
.flash-message {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 0; /* No rounded corners for retro */
    text-align: center;
}
.flash-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.flash-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.flash-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}