/* XP Explorer View Styles */
.xp-explorer-view {
    padding: 5px;
}

.group-header {
    font-weight: bold;
    color: #1d59aa;
    font-size: 13px;
    padding: 2px 0 2px 15px;
    margin-top: 10px;
    margin-bottom: 5px;
    position: relative;
}

.group-header::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, #aebad5 0%, #fff 100%);
    margin-top: 2px;
}

.item-row {
    display: flex;
    flex-wrap: wrap;
    padding-left: 15px;
}

.xp-item {
    display: flex;
    align-items: center;
    width: 250px;
    padding: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    cursor: default;
}

.xp-item:hover {
    border: 1px solid #cee7ff;
    background-color: #eef6ff;
    border-radius: 3px;
}

.xp-item img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: bold;
    font-size: 12px;
}

/* My Computer Window Specifics */
.window.my-computer-window {
    width: 800px;
    height: 550px;
    background: #ECE9D8;
    border: 3px solid #0055E5;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.4);
}

.window.my-computer-window .title-bar {
    background: linear-gradient(to bottom, #0058E6 0%, #3A93FF 10%, #0058E6 100%);
    background: linear-gradient(to bottom, #8CAEE5 0%, #9DB4F0 10%, #8CAEE5 100%);
    padding: 3px 5px 3px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px #000;
    height: auto;
    border-radius: 0;
}

.window.my-computer-window.active .title-bar {
    background: linear-gradient(to bottom, #0058E6 0%, #3A93FF 10%, #0058E6 100%);
}

.window.my-computer-window .title-text { display: flex; align-items: center; gap: 5px; }

/* Navigation Menus */
.menu-bar { padding: 2px 8px; border-bottom: 1px solid #ACA899; background: #ECE9D8; }
.menu-bar span { margin-right: 12px; color: #000; cursor: default; }

.toolbar { 
    display: flex; padding: 4px 8px; gap: 15px; 
    border-bottom: 1px solid #ACA899; align-items: center;
    background: #ECE9D8;
}
.tool-btn { display: flex; align-items: center; gap: 4px; color: #000; cursor: pointer; }

/* Address Bar */
.address-bar { 
    display: flex; align-items: center; padding: 4px 8px; gap: 5px;
    background: #ECE9D8; border-bottom: 1px solid #ACA899;
}
.address-label { color: #666; }
.address-input { 
    flex-grow: 1; background: white; border: 1px solid #7F9DB9;
    padding: 2px 5px; display: flex; align-items: center; gap: 5px;
}
.go-btn { 
    display: flex; align-items: center; gap: 3px; border: 1px solid #ACA899;
    background: #fff; padding: 1px 4px; cursor: pointer;
}

/* Layout Main */
.content-wrapper {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* Left Sidebar (Task Pane) */
.sidebar {
    width: 200px;
    min-width: 200px;
    flex: 0 0 200px;
    background: linear-gradient(to bottom, #748AFF, #415BC7);
    padding: 12px;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar-card {
    background: #D6DFF7; border-radius: 5px 5px 0 0; margin-bottom: 15px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.card-header {
    background: linear-gradient(to right, #ffffff, #B3C1EE);
    padding: 5px 10px; color: #215DC6; font-weight: bold;
    display: flex; justify-content: space-between; border-radius: 4px 4px 0 0;
}
.card-body { padding: 10px; color: #215DC6; }
.card-body div { margin-bottom: 5px; cursor: pointer; text-decoration: none; display: flex; align-items: center; gap: 5px;}
.card-body div:hover { text-decoration: underline; }

/* Right Side (Files Area) */
.file-view {
    flex: 1 1 auto;
    min-width: 0;
    background: white;
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
}
.section-title {
    color: #003399; font-weight: bold; font-size: 12px;
    border-bottom: 1px solid #99B4EF; padding-bottom: 3px; margin: 15px 0 10px 0;
}
.icon-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.icon-item { width: 90px; text-align: center; cursor: pointer; padding: 5px; }
.icon-item:hover { background-color: #e5f3ff; outline: 1px solid #7da2ce; }
.icon-item img { width: 48px; height: 48px; margin-bottom: 4px; }
.icon-label { display: block; color: #000; line-height: 1.2; font-size: 14px; }

.window.portfolio-window {
    min-width: 640px;
    min-height: 440px;
}

.window .title-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-view,
.card-body,
.portfolio-copy,
.project-file,
.contact-window-body,
.resume-document,
.browser-page,
.cmd-body,
.run-body {
    user-select: text;
}

.portfolio-hero {
    max-width: 100%;
    min-height: 150px;
    padding: 18px;
    color: #fff;
    background: linear-gradient(135deg, #1f5ec6 0%, #57a444 55%, #f4bd38 100%);
    border: 1px solid #1c4d9d;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.45);
}

.portfolio-hero h1 {
    margin: 4px 0;
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 32px;
    font-weight: bold;
}

.portfolio-hero p {
    margin: 0;
    font-size: 15px;
}

.eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge {
    flex: 0 0 auto;
    padding: 4px 12px;
    color: #064a06;
    background: #dff8d4;
    border: 1px solid #6ab557;
    font-weight: bold;
    text-shadow: none;
}

.xp-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    margin: 12px 0;
    color: #173c86;
    background: #ffffe1;
    border: 1px solid #d6c96a;
}

.xp-note strong {
    flex: 0 0 120px;
}

.portfolio-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.9fr);
    gap: 18px;
}

.portfolio-copy {
    color: #111;
    font-size: 14px;
    line-height: 1.45;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.quick-links button,
.xp-link-button,
.run-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    color: #000;
    background: linear-gradient(to bottom, #fff, #dcd8c8);
    border: 1px solid #8a867a;
    box-shadow: inset 1px 1px #fff;
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.quick-links button img {
    width: 18px;
    height: 18px;
}

.project-list {
    display: grid;
    gap: 10px;
}

.project-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.project-preview-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: #111;
    background: #f7fbff;
    border: 1px solid #a9bddf;
}

.project-preview-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #dfe9fb;
    border-bottom: 1px solid #a9bddf;
    overflow: hidden;
}

.project-preview-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.project-preview-image > img:hover {
    filter: brightness(1.06);
}

.project-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #2451a3;
    font-weight: bold;
}

.project-placeholder img {
    width: 48px;
    height: 48px;
}

.project-preview-card > div:last-child {
    padding: 10px;
}

.project-preview-card h3 {
    margin: 0 0 3px;
    color: #003399;
    font-size: 15px;
}

.project-preview-card p {
    margin: 5px 0;
    line-height: 1.35;
}

.project-stack {
    display: block;
    margin: 8px 0;
    color: #5f5f5f;
    font-size: 12px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin: 8px 0 10px;
}

.project-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #fff;
    border: 1px solid #a9bddf;
    cursor: pointer;
}

.project-gallery img:hover {
    border-color: #2f71cd;
    filter: brightness(1.08);
}

.project-preview-card a,
.project-preview-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 3px 10px;
    color: #000;
    background: linear-gradient(to bottom, #fff, #dcd8c8);
    border: 1px solid #8a867a;
    box-shadow: inset 1px 1px #fff;
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 12px;
    text-decoration: none;
}

.project-preview-card button:disabled {
    color: #777;
    cursor: default;
}

.project-file {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    padding: 10px;
    color: #111;
    border: 1px solid transparent;
}

.project-file:hover {
    background: #eef6ff;
    border-color: #9fc5e8;
}

.project-file img {
    width: 36px;
    height: 36px;
}

.project-file h3 {
    margin: 0 0 2px;
    color: #003399;
    font-size: 15px;
}

.project-file p {
    margin: 4px 0;
    line-height: 1.35;
}

.project-file span,
.project-type {
    color: #5f5f5f;
    font-size: 12px;
}

.skill-groups,
.service-grid {
    display: grid;
    gap: 12px;
}

.skill-group,
.service-grid div {
    padding: 10px;
    border: 1px solid #b8c7e8;
    background: #f5f8ff;
}

.skill-group h3 {
    margin: 0 0 8px;
    color: #003399;
    font-size: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tags span {
    padding: 4px 8px;
    color: #0b2f7f;
    background: #e1ecff;
    border: 1px solid #9bb7e3;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    color: white;
    background: linear-gradient(to right, #175bd0, #5a9d32);
    border: 1px solid #0b3d9b;
}

.contact-card img {
    width: 56px;
    height: 56px;
}

.contact-card h2,
.contact-card p {
    margin: 2px 0;
}

.contact-list {
    display: grid;
    gap: 8px;
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    color: #003399;
    border: 1px solid #c5d6f1;
    text-decoration: none;
}

.contact-list a:hover {
    background: #eef6ff;
    text-decoration: underline;
}

.contact-list img {
    width: 28px;
    height: 28px;
}

.resume-document {
    max-width: 680px;
    color: #111;
    line-height: 1.45;
}

.resume-document h1 {
    margin: 0 0 4px;
    color: #003399;
}

.resume-document a {
    color: #003399;
}

.service-grid {
    grid-template-columns: 1fr 1fr;
}

.service-grid strong,
.service-grid span {
    display: block;
}

.service-grid strong {
    color: #003399;
    margin-bottom: 5px;
}

.browser-page {
    min-height: 280px;
    color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}

.browser-page img {
    width: 64px;
    height: 64px;
}

.browser-page h1 {
    margin: 0;
    color: #003399;
}

.empty-bin {
    padding: 40px;
    color: #555;
    text-align: center;
}

.window.cmd-window {
    width: 620px;
    height: 360px;
    background: #000;
    border: 3px solid #0055E5;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.cmd-body {
    height: calc(100% - 30px);
    padding: 12px;
    overflow: auto;
    color: #c0c0c0;
    background: #000;
    font-family: "Lucida Console", Monaco, monospace;
    font-size: 14px;
}

.cmd-body p {
    margin: 0 0 8px;
}

.window.run-window {
    width: 420px;
    height: 190px;
    background: #ece9d8;
    border: 3px solid #0055E5;
    border-radius: 8px 8px 0 0;
}

.window.photo-viewer-window {
    width: 860px;
    height: 620px;
    background: #ece9d8;
    border: 3px solid #0055E5;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.4);
}

.window.photo-viewer-window .title-bar {
    background: linear-gradient(to bottom, #8CAEE5 0%, #9DB4F0 10%, #8CAEE5 100%);
    padding: 3px 5px 3px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px #000;
}

.window.photo-viewer-window.active .title-bar {
    background: linear-gradient(to bottom, #0058E6 0%, #3A93FF 10%, #0058E6 100%);
}

.photo-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 10px;
    color: #111;
    background: #ece9d8;
    border-bottom: 1px solid #aca899;
}

.photo-viewer-toolbar span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-viewer-toolbar a {
    flex: 0 0 auto;
    color: #003399;
}

.photo-viewer-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px;
    background: #2f2f2f;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.photo-viewer-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.run-body {
    padding: 14px;
    color: #111;
}

.run-row {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 8px;
    align-items: center;
    margin: 16px 0;
}

.run-row input {
    height: 24px;
    border: 1px solid #7f9db9;
    padding: 2px 5px;
}

.run-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 760px) {
    .window.my-computer-window,
    .window.portfolio-window,
    .window.cmd-window,
    .window.photo-viewer-window,
    .window.run-window {
        width: calc(100vw - 16px);
        min-width: 0;
        left: 8px !important;
    }

    .window.my-computer-window,
    .window.portfolio-window,
    .window.photo-viewer-window {
        height: calc(100vh - 72px);
        top: 8px !important;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        max-height: 150px;
    }

    .portfolio-columns,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .portfolio-hero h1 {
        font-size: 26px;
    }
}
