@import url('https://fonts.googleapis.com/css2?family=DotGothic16&display=swap');

body {
    font-family: 'DotGothic16', sans-serif;
    background-color: #0d060a;
    background-image: url('images/wallpaper.jpg');
    background-size: cover;     
    background-position: center;     
    background-repeat: no-repeat;    
    background-attachment: fixed;    

    margin: 0;
    padding: 40px 20px;
    color: #e0d0d8;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    text-rendering: optimizeSpeed;
}

.desktop-icon {
    width: 70px;
    text-align: center;
    color: #ffffff;
    font-size: 12px;
    text-shadow: 1px 1px 2px #000000;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}

.desktop-icon * {
    pointer-events: none;
}

.icon-pic {
    width: 32px;
    height: 32px;
    background: #df4a4a;
    border: 2px solid #ffffff;
    border-radius: 4px;
    margin: 0 auto 4px auto;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    background-size: cover;
    background-position: center;
}

.win7-window {
    max-width: 860px;
    margin: 0 auto;
    background: rgba(30, 8, 15, 0.75);
    border: 1px solid rgba(255, 0, 85, 0.3);
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px;
}

.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px 8px 8px;
}

.title-text {
    font-size: 14px;
    color: #ffb3c6;
    font-weight: bold;
    text-shadow: 0 1px 2px #000;
    display: flex;
    align-items: center;
    gap: 6px;
}

.title-icon {
    width: 14px;
    height: 14px;
    background: #ff0055;
    border-radius: 2px;
    box-shadow: 0 0 5px #ff0055;
}

.win-controls {
    display: flex;
    gap: 4px;
}

.win-btn {
    width: 28px;
    height: 18px;
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 3px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

.win-btn.close {
    background: linear-gradient(to bottom, #a31c3f, #520518);
    border-color: #ff0055;
}

.win-btn:hover {
    filter: brightness(1.2);
}

.window-body {
    background: #120a0f;
    border: 1px solid #3d1421;
    border-radius: 4px;
    color: #d1c4e9;
}

.address-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: linear-gradient(to bottom, #1f0d15, #14070d);
    border-bottom: 1px solid #3d1421;
}

.nav-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #a0b0c0;
    background: #ffffff;
}

.url-field {
    flex: 1;
    background: #080305;
    border: 1px solid #4d1d2b;
    padding: 3px 8px;
    font-size: 12px;
    color: #ff99bb;
}

.search-field {
    width: 150px;
    background: #080305;
    border: 1px solid #4d1d2b;
    padding: 3px 8px;
    font-size: 12px;
    color: #664455;
}

/* TAB CONTAINER (Strictly holds tab buttons only) */
.win7-tabs {
    display: flex;
    align-items: flex-end;
    background: #170b12;
    padding: 8px 10px 0 10px;
    gap: 4px;
    border-bottom: 1px solid #4d1d2b;
}

/* TAB BUTTON (Fixed dimensions to eliminate stretching) */
.tab-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 16px;
    font-size: 13px;
    background: #2b121d;
    border: 1px solid #4d1d2b;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    color: #a88295;
    user-select: none;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.tab-label:hover {
    background: #3d1727;
    color: #ffccd5;
}

/* ACTIVE TAB HIGHLIGHT */
.tab-label.active {
    height: 30px;
    background: #0d060a;
    color: #ff0055;
    font-weight: bold;
    border-color: #ff0055;
    border-bottom: 1px solid #0d060a;
    margin-bottom: -1px;
    z-index: 2;
}

/* CONTENT PANELS */
.tab-content {
    width: 100%;
    background: #0d060a;
    border: 1px solid #4d1d2b;
    border-top: none;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 0 0 4px 4px;
    min-height: 320px;
    display: none;
}

#content1 {
    display: block;
}

.glass-panel {
    background: #140910;
    border: 1px solid #331320;
    border-radius: 3px;
    padding: 15px;
}

.glass-panel.full-height {
    height: 100%;
    box-sizing: border-box;
}

.profile-layout {
    display: flex;
    gap: 20px;
}

.profile-side {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-main {
    flex: 1;
}

.text-center {
    text-align: center;
}

.avatar {
    width: 100%;
    max-width: 160px;
    height: auto;
    border: 1px solid #8b0000;
    background: #000;
    padding: 4px;
    box-shadow: 0 0 8px rgba(139, 0, 0, 0.5);
}

.username {
    font-size: 22px;
    margin: 10px 0 2px 0;
    color: #ff0055;
    text-shadow: 0 0 4px rgba(255, 0, 85, 0.4);
}

.status {
    font-size: 13px;
    color: #607080;
    margin: 0;
    font-style: italic;
}

.metadata p {
    font-size: 13px;
    margin: 6px 0;
    border-bottom: 1px solid #e2eaf2;
    padding-bottom: 4px;
}

h3 {
    font-size: 16px;
    color: #ff3377;
    margin: 0 0 10px 0;
    border-bottom: 1px solid #4d1d2b;
    padding-bottom: 4px;
}

.win7-link {
    display: inline-block;
    background: #2b0b17;
    border: 1px solid #ff0055;
    color: #ffccd5;
    padding: 6px 12px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 3px;
}

.win7-link:hover {
    background: #ff0055;
    color: #ffffff;
    box-shadow: 0 0 8px #ff0055;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table-wrapper td {
    padding: 10px;
    vertical-align: top;
    border-bottom: 1px solid #290d17;
}

.table-wrapper .label {
    font-weight: bold;
    color: #ff0055;
    width: 100px;
    background: #1c0a13;
}

.counter {
    color: #aa2222;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.friend-card {
    background: #140910;
    border: 1px solid #331320;
    padding: 8px;
    text-align: center;
    font-size: 12px;
}

.friend-card:hover {
    border-color: #ff0055;
}

.friend-pic {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid #abc0d6;
    margin-bottom: 6px;
    display: block;
}

.status-bar {
    background: #14070d;
    border-top: 1px solid #3d1421;
    padding: 4px 10px;
    font-size: 11px;
    color: #885566;
    display: flex;
    justify-content: space-between;
}

/* POPUP MODAL */
.img-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.img-modal-content {
    background: #f9fbfd;
    border: 1px solid #708090;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
    }
    .profile-side {
        width: 100%;
    }
    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}