/* Windows 95 Theme CSS - Fixed */
body {
    background-color: #008080; /* Classic Win95 teal background */
    font-family: "MS Sans Serif", Arial, sans-serif;
    margin: 0;
    padding: 20px;
    color: #000000;
}

.win95-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #c0c0c0;
    border: 2px solid #000000;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

/* Windows 95 Title Bar */
.win95-title-bar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    padding: 3px 2px 3px 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 12px;
}

.win95-buttons {
    display: flex;
}

.win95-button {
    width: 16px;
    height: 14px;
    background-color: #c0c0c0;
    border: 1px outset #ffffff;
    margin-left: 2px;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    line-height: 12px;
}

.win95-button:active {
    border: 1px inset #ffffff;
}

/* Standard Windows 95 button for dialogs and forms */
.win95-btn {
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    padding: 4px 10px;
    font-size: 12px;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    cursor: pointer;
    min-width: 75px;
    text-align: center;
}

.win95-btn:active {
    border: 2px inset #ffffff;
}

.win95-btn:disabled {
    color: #808080;
    text-shadow: 1px 1px 0 #ffffff;
}

/* Windows 95 Menu Bar */
.win95-menu-bar {
    background-color: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
    padding: 2px 0;
}

.win95-menu-item {
    padding: 2px 6px;
    margin-right: 4px;
    font-size: 12px;
    cursor: pointer;
}

.win95-menu-item:hover {
    background-color: #000080;
    color: white;
}

/* Windows 95 Menu Bar Dropdown Styling */

/* Dropdown container */
.win95-dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown content panel */
.win95-dropdown-content {
    display: none;
    position: absolute;
    background-color: #c0c0c0;
    min-width: 140px;
    left: -2px;
    top: calc(100% - 1px);
    border-top: 1px solid #dfdfdf;
    border-left: 1px solid #dfdfdf;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.win95-dropdown-content.show {
    display: block;
}

/* Dropdown item styling */
.win95-dropdown-item {
    color: #000000;
    padding: 4px 8px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    position: relative;
    font-size: 12px;
}

/* Active item in dropdown */
.active-dropdown-item {
    background-color: #000080;
    color: white;
}

/* Hover state for dropdown items */
.win95-dropdown-item:hover:not(.active-dropdown-item) {
    background-color: #000080;
    color: white;
}

/* Add separator between dropdown items - thinner line */
.win95-dropdown-content div:not(:last-child) {
    border-bottom: 1px solid #919191;
}

/* Windows 95 Content Area */
.win95-content {
    padding: 10px;
    font-size: 12px;
}

/* Windows 95 Box */
.win95-box {
    border: 2px inset #ffffff;
    background-color: #ffffff;
    padding: 10px;
    margin-bottom: 16px;
}

/* Section Styling */
.section-header {
    margin-top: 20px;
    margin-bottom: 4px;
}

.section-title {
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    padding: 3px 5px;
    font-weight: bold;
    display: inline-block;
}

.section-content {
    margin-top: 0;
}

/* Standard Elements */
h1, h2 {
    color: #000080;
    text-align: center;
    margin: 15px 0;
    font-size: 18px;
    font-weight: bold;
}

h2 {
    font-size: 16px;
}

.marquee {
    background-color: #ffffcc; /* More muted yellow */
    padding: 5px;
    text-align: center;
    margin: 10px 0;
    border: 1px solid #000000; /* Simple black border */
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 12px;
    box-shadow: 1px 1px 0 #ffffff inset, -1px -1px 0 #808080 inset; /* Subtle Windows 95 inset effect */
}

.blink {
    animation: blink-animation 1s steps(5, start) infinite;
    display: inline-block;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

.win95-button-large {
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    padding: 4px 10px;
    font-size: 12px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    cursor: pointer;
}

.win95-button-large:active {
    border: 2px inset #ffffff;
}

.button-container {
    text-align: center;
    margin: 10px 0;
}

/* Decryption animation */
.win95-decrypt-animation {
    margin-top: 15px;
    display: none;
}

.decrypt-progress {
    border: 2px inset #ffffff;
    background-color: #ffffff;
    height: 20px;
    margin-bottom: 5px;
    padding: 1px;
}

.decrypt-bar {
    background-color: #0000aa;
    height: 100%;
    width: 0;
    transition: width 0.5s;
}

.decrypt-text {
    font-family: "Courier New", monospace;
    font-size: 12px;
    color: #008000;
}

.image-placeholder {
    text-align: center;
    width: 220px;
    margin: 10px auto;
    font-weight: bold;
    background-color: #c0c0c0;
    padding: 15px;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #808080;
}

th, td {
    padding: 5px;
    text-align: left;
}

th {
    background-color: #c0c0c0;
}

.skill-dots {
    letter-spacing: 2px;
}

/* Windows 95 Status Bar */
.win95-status-bar {
    background-color: #c0c0c0;
    padding: 3px 5px;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    font-size: 11px;
    border: 1px inset #ffffff;
}

.status-bar-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.status-bar-bottom {
    text-align: center;
    padding-top: 2px;
    border-top: 1px solid #808080;
}


.status-item {
    padding: 0 5px;
}

/* Windows 95-style links */
a {
    color: #0000FF;
    text-decoration: none;
}

a:visited {
    color: #800080;
}

a:hover {
    text-decoration: underline;
}

/* List styling */
ul {
    list-style-type: square;
    margin: 5px 0;
    padding-left: 20px;
}

/* Windows 95 Dialog */
.win95-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    width: 300px;
    transition: opacity 0.5s;
}

body.startup {
    background-color: #008080;
    background-image: none;
    padding: 0;
    margin: 0;
    overflow: hidden; /* Prevent scrolling during startup */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.win95-dialog-title {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    padding: 3px 3px 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 12px;
}

.win95-dialog-content {
    padding: 15px;
    text-align: center;
}

.dialog-logo {
    margin-bottom: 15px;
}

.windows-logo {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
}

.windows-logo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    background-color: #ff0000;
}

.windows-logo::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background-color: #00ff00;
}

.windows-logo .bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 15px;
    height: 15px;
    background-color: #0000ff;
}

.windows-logo .bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background-color: #ffff00;
}

.dialog-message {
    margin-bottom: 15px;
    font-size: 14px;
}

.dialog-buttons {
    margin-top: 15px;
}

.faith-message {
    color: #000080; /* Windows 95 blue */
    font-weight: bold;
}

.faith-message a {
    color: #0000FF;
}

.faith-message a:hover {
    text-decoration: underline;
}

/* Simple Windows 95 Scrollbar Styling */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background-color: #c0c0c0;
    border-left: 1px solid #7e7e7e;
}

::-webkit-scrollbar-thumb {
    background-color: #c0c0c0;
    border: 1px solid #000;
    border-right-color: #fff;
    border-bottom-color: #fff;
    box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #7e7e7e;
}

::-webkit-scrollbar-button {
    display: block;
    background-color: #c0c0c0;
    border: 1px solid #000;
    border-right-color: #fff;
    border-bottom-color: #fff;
    box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #7e7e7e;
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-button:vertical:start:decrement:after {
    content: "▲";
    display: block;
    font-size: 8px;
    text-align: center;
    margin-top: 3px;
}

::-webkit-scrollbar-button:vertical:end:increment:after {
    content: "▼";
    display: block;
    font-size: 8px;
    text-align: center;
    margin-top: 3px;
}

::-webkit-scrollbar-button:horizontal:start:decrement:after {
    content: "◄";
    display: block;
    font-size: 8px;
    text-align: center;
    margin-top: 3px;
}

::-webkit-scrollbar-button:horizontal:end:increment:after {
    content: "►";
    display: block;
    font-size: 8px;
    text-align: center;
    margin-top: 3px;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #c0c0c0 #c0c0c0;
}

/* Make sure the content area is scrollable */
.win95-content {
    max-height: 80vh; /* Adjust this value as needed */
    overflow-y: auto;
    padding: 15px;
}

/* Additional Windows 95 Styling for Strava PBs */
.pb-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.pb-title-bar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    font-weight: bold;
    padding: 3px 5px;
    font-size: 12px;
}

.pb-content {
    padding: 10px;
    background-color: #ffffff;
    border: 2px inset #ffffff;
}

.pb-time {
    font-size: 20px;
    text-align: center;
    margin: 12px 0;
    color: #000080;
    font-weight: bold;
}

.pb-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pb-details li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    border-bottom: 1px solid #c0c0c0;
    padding-bottom: 4px;
}

.strava-link {
    display: block;
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    color: black;
    text-decoration: none;
    text-align: center;
    padding: 4px 10px;
    margin-top: 10px;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 12px;
    cursor: pointer;
}

.strava-link:active {
    border: 2px inset #ffffff;
}

.strava-orange {
    color: #FC4C02;
}

.refresh-time {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    margin-bottom: 18px;
}

.sync-indicator {
    width: 8px;
    height: 8px;
    background-color: #00D000;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    border: 1px solid #008000;
    box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, 0.3),
    0 0 3px rgba(0, 208, 0, 0.5);
}

.sync-text-content {
    font-family: "Lucida Console", "Courier New", Courier, monospace;
    font-size: 11px;
    color: #000080;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: normal;
}

.loading-box {
    text-align: center;
    padding: 20px;
    border: 2px inset #ffffff;
    background-color: #ffffff;
}

/* Windows 95 spinner animation */
.win95-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url('data:image/gif;base64,R0lGODlhIAAgAPMAAP///wAAAMbGxoSEhLa2tpqamjY2NlZWVjIyMhwcHAAAAAAAAAAAAAAAAAAAAAALQAAAAAAAAAAAAA4BEAAAAARDEIm138KnbRu1vBIQy7cBhnA9gg5IBFAAqKdZsOLJ1UxUDEahjQcASIwQ42gqwg5kcBQETsUWQXgsqgNWAFQM5GdyAgA7');
    background-repeat: no-repeat;
    background-size: contain;
    margin-bottom: 10px;
}

/* Stats container */
.stats-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Stats box */
.stats-box {
    border: 2px solid #c0c0c0;
    background-color: #ececec;
    box-shadow: inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #888888;
}

/* Stats title bar */
.stats-title-bar {
    background-color: #000080;
    color: white;
    padding: 4px 8px;
    font-weight: bold;
}

/* Stats grid to hold counter cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 16px;
}

/* Individual counter card */
.counter-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid #c0c0c0;
    background-color: #f0f0f0;
    /* Windows 95 inset effect */
    box-shadow: inset -1px -1px 0 #ffffff,
    inset 1px 1px 0 #888888;
}

.counter-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.counter-title {
    font-size: 14px;
    margin-bottom: 8px;
    color: #000080;
    text-align: center;
}

.counter-value {
    font-size: 24px;
    font-weight: bold;
    color: #000080;
}

/* What I Do */

.Msnp32ServerIcon_32x32 {
    width: 32px;
    height: 32px;
    background-image: url(/icons/server-icon.ico);
    display: inline-block;
    margin-bottom: 4px;
}

.MspaintIcon_32x32 {
    width: 32px;
    height: 32px;
    background-image: url(/icons/mspaint.ico);
    display: inline-block;
    margin-bottom: 4px;
}

.ReaderDiskIcon_32x32 {
    width: 32px;
    height: 32px;
    background-image: url(/icons/database.ico);
    display: inline-block;
    margin-bottom: 4px;
}

.Regedit100_32x32 {
    width: 32px;
    height: 32px;
    background-image: url(/icons/regedit-100.ico);
    display: inline-block;
    margin-bottom: 4px;
}

.Msrating100_32x32 {
    width: 32px;
    height: 32px;
    background-image: url(/icons/msrating-109.ico);
    display: inline-block;
    margin-bottom: 4px;
}

.program-manager {
    display: flex;
    margin-bottom: 10px;
    min-height: 100px;
    background-color: white;
    padding: 10px;
}

.program-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
    padding: 10px 0;
}

.program-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    cursor: pointer;
    text-align: center;
    padding: 4px;
}

.program-item:hover {
    background-color: transparent;
    outline: 1px dotted #000000;
}

.program-item:active {
    background-color: #0000aa;
    color: white;
    outline: none;
}

.program-info {
    background-color: white;
    padding: 10px;
    min-height: 60px;
    margin-top: 8px;
}

.icon-description-separator {
    border-top: 1px solid #808080;
    border-bottom: 1px solid #ffffff;
    height: 0;
    margin: 8px 0;
}

.win95-status-mini {
    border-top: 1px solid #808080;
    padding: 2px 5px;
    background-color: #c0c0c0;
    font-size: 11px;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.ComputerIcon_32x32 {
    width: 32px;
    height: 32px;
    background-image: url(/icons/computer.ico);
    display: inline-block;
    margin-bottom: 4px;
    background-repeat: no-repeat;
    background-position: center;
}

.GitHubIcon_32x32 {
    width: 32px;
    height: 32px;
    background-image: url(/icons/github-mark-white.png);
    display: inline-block;
    margin-bottom: 4px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
}

.RecycleIcon_32x32 {
    width: 32px;
    height: 32px;
    background-image: url(/icons/recycle-full.ico);
    display: inline-block;
    margin-bottom: 4px;
    background-repeat: no-repeat;
    background-position: center;
}

.SpotifyIcon_32x32 {
    width: 32px;
    height: 32px;
    background-image: url(/icons/spotify-white.png);
    display: inline-block;
    margin-bottom: 4px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Hide desktop icons on mobile devices */
html body.is-touch-device .desktop-icons,
body.is-touch-device .desktop-icons,
.is-touch-device .win95-container .desktop-icons,
.is-touch-device div.desktop-icons {
    display: none;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75px;
    cursor: pointer;
    padding: 5px;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.desktop-icon span:last-child {
    margin-top: 4px;
    font-size: 11px;
    text-align: center;
    word-wrap: break-word;
    width: 100%;
}

.desktop-icon.selected {
    background-color: #000080;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
}

.desktop-icon:active {
    background-color: #000080;
    color: #fff;
}

.desktop-icon:focus {
    outline: 1px dotted #000;
}

.address-bar {
    background-color: white;
    border: 1px inset #808080;
    padding: 2px 5px;
    margin-bottom: 5px;
    font-size: 11px;
    display: flex;
    align-items: center;
}

.address-bar span {
    margin-right: 5px;
}

.folder-view {
    background-color: white;
    border: 1px inset #808080;
    padding: 5px;
    overflow: auto;
    min-height: 250px;
}

.folder-view-header {
    display: flex;
    border-bottom: 1px solid #d0d0d0;
    font-weight: bold;
    font-size: 11px;
    padding-bottom: 3px;
}

.folder-view-column {
    padding: 2px 5px;
}

.column-name {
    flex: 3;
}

.column-type {
    flex: 2;
}

.column-details {
    flex: 4;
}

.tech-item {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding: 3px 0;
    font-size: 11px;
}

.tech-item:hover {
    background-color: #d0d0d0;
}

.tech-item.selected {
    background-color: #000080;
    color: white;
}

.tech-item-name {
    flex: 3;
    display: flex;
    align-items: center;
}

.tech-item-name span[class*="Icon"] {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.tech-item-type {
    flex: 2;
}

.tech-item-details {
    flex: 4;
}

#myTechWindow {
    position: fixed; /* Changed from absolute to fixed */
    top: 50px;
    left: 50px;
    z-index: 1000; /* Higher z-index to ensure it's above everything */
    width: 600px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    background-color: #c0c0c0;
    border: 2px outset #fff;
}

#spotifyWindow {
    width: 650px; /* Match your screenshot better */
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    border: 2px outset #dfdfdf;
    font-family: 'MS Sans Serif', Arial, sans-serif;
}

/* Header area */
.spotify-header {
    padding: 10px;
}

.spotify-header h2 {
    margin: 0;
    font-size: 1.2em;
    color: #000;
}

/* Artists container */
.spotify-artists-container {
    display: flex;
    justify-content: space-between;
    margin: 10px;
    padding: 5px;
}

.spotify-artist {
    text-align: center;
    width: 100px;
    margin-bottom: 10px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artist-image-container {
    width: 80px;
    height: 80px;
    position: relative;
    overflow: hidden;
    border: 1px inset #808080;
    margin: 0 auto 5px auto;
}

.artist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-name {
    font-weight: bold;
    margin-bottom: 2px;
    font-size: 0.9em;
}

.artist-label {
    color: #555;
    font-size: 0.8em;
}

/* Tracks section */
.spotify-tracks-section {
    margin: 15px 10px;
    border: 1px inset #808080;
    padding: 8px;
    background-color: #fff;
}

.spotify-tracks-section h3 {
    display: inline-block;
    margin: 5px 0;
    font-size: 1em;
}

.spotify-visibility {
    color: #555;
    font-size: 0.8em;
    margin-bottom: 5px;
}

.spotify-show-all {
    position: absolute;
    right: 10px;
    top: 8px;
    color: #0000FF;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.8em;
}

/* Tracks list */
.spotify-tracks-list {
    border: none;
    background-color: #fff;
}

.spotify-track-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-bottom: 1px solid #ddd;
    height: 40px; /* Consistent height */
}

.spotify-track-item:hover {
    background-color: #e0e0e0;
}

.track-number {
    width: 25px;
    text-align: center;
    color: #555;
    font-size: 0.9em;
    padding-right: 5px;
    font-weight: normal;
    display: flex;
    justify-content: center;
    align-items: center;
}

.track-art-container {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border: 1px solid #a0a0a0;
}

.track-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.track-name {
    font-weight: bold;
    margin-bottom: 2px;
    color: #000;
}

.track-artist {
    color: #555;
    font-size: 0.85em;
}

.track-album {
    width: 120px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-played {
    width: 20px;
    text-align: center;
}

.track-check-icon {
    display: inline-block;
    color: #008000; /* Win95 green */
    font-weight: bold;
}

.track-duration {
    width: 40px;
    text-align: right;
    color: #555;
}

#spotifyWindow .win95-content {
    padding: 10px 5px;
    background-color: #c0c0c0;
}

#spotifyTitleBar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    padding: 2px 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spotify-track-item > div:last-child {
    padding-right: 0;
}

.spotify-track-item:nth-child(odd) {
    background-color: #f5f5f5;
}

/* Windows 95 Style Achievement Notification */
.achievement-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #c0c0c0; /* Classic Win95 gray */
    padding: 2px;
    z-index: 9999;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 380px;
    min-width: 280px;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    box-sizing: border-box;
    pointer-events: none; /* Prevent clicking through it */

    /* Classic Win95 border effect - raised outer border */
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    box-shadow: 0 0 0 1px #000000;
}

.achievement-content {
    display: flex;
    align-items: center;
    color: white;
    background-color: #000080; /* Win95 classic title bar blue */
    padding: 6px 10px;
    width: 100%;

    /* Inner border effect - Windows 95 style */
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
}

.achievement-icon {
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-icon svg {
    width: 20px;
    height: 20px;
    fill: #ffcc00; /* Trophy gold color */
    background-color: transparent;
    /* Make the SVG look more Windows 95-like */
    filter: drop-shadow(1px 1px 0px rgba(0,0,0,0.5));
}

.achievement-text {
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

.achievement-separator {
    margin: 0 5px;
    color: #c0c0c0;
}

@keyframes win95SlideUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    90% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

.achievement-show {
    animation: win95SlideUp 8s forwards;
}

/* ==================================
   Floppy Disk Loader Component
   ================================== */

/* Base Container Styles */
.floppy-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 15px;
    min-height: 32px;
    overflow: hidden;

    /* Transitions for all states */
    transition:
            background-color 0.2s ease,
            opacity 0.5s ease-out 0.1s,
            height 0.5s ease-out 0.1s,
            padding-top 0.5s ease-out 0.1s,
            padding-bottom 0.5s ease-out 0.1s,
            margin-top 0.5s ease-out 0.1s,
            margin-bottom 0.5s ease-out 0.1s,
            border-width 0.5s ease-out 0.1s;
}

.floppy-container.interactive {
    cursor: pointer;
}

.floppy-container.interactive:hover {
    background-color: #d4d0c8;
}

/* Content Layout */
.floppy-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.floppy-icon {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

.floppy-text {
    font-family: 'Pixelated MS Sans Serif', Arial, sans-serif;
    font-size: 12px;
    user-select: none;
    transition: color 0.3s ease;
}

.floppy-drive-light {
    position: absolute;
    bottom: 5px;
    right: 8px;
    width: 6px;
    height: 6px;
    background-color: #808080;
    border: 1px solid #000;
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* Loading State */
.floppy-container.loading {
    cursor: wait;
    background-color: #c0c0c0;
    animation: containerShake 0.15s linear infinite;
}

.floppy-container.loading .floppy-icon {
    animation: floppyInsertAndWhir 1.8s ease-in-out forwards;
}

.floppy-container.loading .floppy-text {
    color: #000;
}

.floppy-container.loading .floppy-drive-light {
    opacity: 1;
    animation: driveBlinkPulse 0.6s ease-in-out infinite;
}

/* Loaded State */
.floppy-container.loaded {
    cursor: default;
    opacity: 0.7;
    animation: none;
}

.floppy-container.loaded:hover {
    background-color: #c0c0c0;
}

/* Dissolving State */
.floppy-container.dissolving {
    cursor: default;
    animation: none;
}

.floppy-container.dissolving .floppy-icon,
.floppy-container.dissolving .floppy-text,
.floppy-container.dissolving .floppy-drive-light {
    opacity: 0 !important;
    transition: opacity 0.2s linear !important;
    z-index: 1;
}

.floppy-container.dissolving .pixel-overlay {
    opacity: 1;
}

.floppy-container.dissolving .pixel-square {
    animation-play-state: running;
}

/* Dissolved State */
.floppy-container.dissolved {
    opacity: 0;
    height: 0;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-width: 0;
    overflow: hidden;
}

/* ==================================
   Animation Keyframes
   ================================== */

/* Floppy Disk Insertion Animation */
@keyframes floppyInsertAndWhir {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    15% {
        transform: translateY(5px) scale(0.95) rotate(0deg);
        opacity: 0.9;
    }
    25% {
        transform: translateY(2px) scale(1) rotate(0deg);
        opacity: 1;
    }
    30%, 50%, 70%, 90% {
        transform: translateY(2px) scale(1) rotate(-1deg);
    }
    40%, 60%, 80%, 100% {
        transform: translateY(2px) scale(1) rotate(1deg);
    }
}

/* Container Vibration Animation */
@keyframes containerShake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(1px, 0px); }
    50% { transform: translate(0px, 1px); }
    75% { transform: translate(-1px, 0px); }
}

/* Drive Light Blinking Animation */
@keyframes driveBlinkPulse {
    0% {
        background-color: #008000;
        box-shadow: none;
    }
    50% {
        background-color: #33ff33;
        box-shadow: 0 0 3px 1px rgba(51, 255, 51, 0.7);
    }
    100% {
        background-color: #008000;
        box-shadow: none;
    }
}

/* Pixelation Animation */
@keyframes pixelateVirus {
    0% {
        background-color: #2a5a5a;
        opacity: 0.5;
    }
    50% {
        background-color: #1a3a3a;
        opacity: 0.8;
    }
    100% {
        background-color: #008080;
        opacity: 1;
    }
}

/* ==================================
   Floppy Disk Icon
   ================================== */

.FloppyDiskIcon_32x32 {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url(/icons/floppy-disk.ico);
    background-position: -128px -64px;
    image-rendering: pixelated;
}

/* ==================================
   Hidden Content Section
   ================================== */

.hidden-content-section {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition:
            opacity 0.6s ease-out,
            transform 0.6s ease-out,
            height 0s ease 0.6s,
            visibility 0s ease 0.6s;
}

.hidden-content-section.visible {
    opacity: 1;
    visibility: visible;
    height: auto;
    transform: translateY(0);
    transition:
            opacity 0.6s ease-out,
            transform 0.6s ease-out,
            height 0s ease 0s,
            visibility 0s ease 0s;
}

/* ==================================
   Pixel Overlay Effect
   ================================== */

.pixel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    z-index: 5;
    background-color: transparent;
    transition: opacity 0.1s linear;
}

.pixel-overlay.active {
    opacity: 1;
}

.pixel-square {
    width: 5px;
    height: 5px;
    background-color: transparent;
    opacity: 0;
    animation: pixelateVirus 0.5s linear forwards;
    animation-play-state: paused;
}

/* ==================================
   Coffee Stats
   ================================== */

.coffee-program-manager {
    display: flex;
    gap: 20px;
    padding: 15px;
    background-color: #c0c0c0;
    border: 1px inset #dfdfdf;
    min-height: 120px;
}

.coffee-icon-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 10px;
}

.coffee-program-icon {
    text-align: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 2px;
}

.coffee-program-icon:hover {
    background-color: #000080;
    color: white;
}

.coffee-icon-large {
    font-size: 48px;
    margin-bottom: 5px;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}

.coffee-program-label {
    font-size: 11px;
    font-weight: bold;
    word-wrap: break-word;
    max-width: 70px;
}

.coffee-details-panel {
    flex: 1;
    background-color: #ffffff;
    border: 1px inset #808080;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coffee-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #c0c0c0;
}

.coffee-app-title {
    font-weight: bold;
    color: #000080;
    font-size: 12px;
}

.coffee-version {
    font-size: 10px;
    color: #666;
    font-style: italic;
}

.coffee-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.coffee-metric-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coffee-metric-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    font-weight: bold;
}

.coffee-metric-value {
    font-size: 16px;
    font-weight: bold;
    color: #8B4513;
}

.coffee-metric-badge {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(to right, #FFD700, #FFA500);
    padding: 2px 6px;
    border-radius: 2px;
    display: inline-block;
    width: fit-content;
    border: 1px outset #FFD700;
}

.coffee-progress-container {
    margin-top: 5px;
}

.coffee-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 4px;
    font-weight: bold;
}

.coffee-progress-track {
    height: 16px;
    background-color: #c0c0c0;
    border: 1px inset #808080;
    position: relative;
    overflow: hidden;
}

.coffee-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #8B4513, #D2691E);
    transition: width 0.5s ease;
    position: relative;
}

.coffee-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.1) 2px,
            rgba(255,255,255,0.1) 4px
    );
}

.coffee-status-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #666;
    margin-top: auto;
}

.coffee-status-icon {
    font-size: 12px;
}

/* iPhone 12 Pro and similar (390px width) */
@media screen and (max-width: 430px) {
    .win95-box .coffee-program-manager {
        flex-direction: column;
        gap: 0;
        padding: 0;
        min-height: auto;
        background-color: #c0c0c0;
        border: 1px inset #dfdfdf;
    }

    .win95-box .coffee-icon-area {
        min-width: auto;
        padding: 15px;
        align-self: stretch;
        background-color: #ffffff;
        border-bottom: 1px solid #c0c0c0;
    }

    .win95-box .coffee-icon-large {
        font-size: 36px;
        margin-bottom: 5px;
    }

    .win95-box .coffee-details-panel {
        padding: 15px;
        gap: 15px;
        border: none;
        background-color: #ffffff;
    }

    .win95-box .coffee-details-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding-bottom: 12px;
        border-bottom: 2px solid #c0c0c0;
    }

    .win95-box .coffee-app-title {
        font-size: 16px;
        font-weight: bold;
    }

    .win95-box .coffee-version {
        font-size: 12px;
        align-self: auto;
        margin-top: 0;
    }

    .win95-box .coffee-metrics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .win95-box .coffee-metric-item {
        background-color: #f8f8f8;
        padding: 12px;
        border: 2px inset #dfdfdf;
        gap: 6px;
        text-align: center;
    }

    .win95-box .coffee-metric-label {
        font-size: 12px;
        color: #000080;
        font-weight: bold;
    }

    .win95-box .coffee-metric-value {
        font-size: 24px;
        font-weight: bold;
    }

    .win95-box .coffee-metric-badge {
        font-size: 14px;
        padding: 4px 12px;
        align-self: center;
        margin: 0 auto;
    }

    .win95-box .coffee-progress-container {
        margin-top: 15px;
        background-color: #f8f8f8;
        padding: 12px;
        border: 2px inset #dfdfdf;
    }

    .win95-box .coffee-progress-header {
        font-size: 13px;
        margin-bottom: 8px;
        font-weight: bold;
    }

    .win95-box .coffee-progress-track {
        height: 20px;
        border: 2px inset #808080;
    }

    .win95-box .coffee-status-line {
        font-size: 12px;
        margin-top: 15px;
        padding: 8px;
        background-color: #f8f8f8;
        border: 2px inset #dfdfdf;
        border-radius: 0;
        justify-content: center;
    }
}

@media screen and (max-width: 375px) {
    .win95-box .coffee-details-panel {
        padding: 12px;
    }

    .win95-box .coffee-app-title {
        font-size: 14px;
    }

    .win95-box .coffee-metric-value {
        font-size: 20px;
    }

    .win95-box .coffee-metrics-grid {
        gap: 12px;
    }
}