@import url('https://fonts.cdnfonts.com/css/tahoma');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: #111;
    background-image: var(--bg-image, url('https://images7.alphacoders.com/423/423347.jpg'));
    background-size: cover;
    background-position: center;
    font-family: 'Tahoma', sans-serif;
    height: 100vh;
    overflow: hidden;
    color: #c9d0bb;
}

.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0.05) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    z-index: 999;
    pointer-events: none;
}

.steam-app {
    width: 100%;
    height: 100%;
    background: rgba(74, 81, 65, 0.95);
    display: flex;
    flex-direction: column;
}

.toolbar {
    height: 32px;
    background: #3e4637;
    border-bottom: 1px solid #2c3026;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    flex-shrink: 0;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-right {
    display: flex;
    align-items: center;
}

.app-menu {
    font-size: 11px;
    cursor: pointer;
    color: #c9d0bb;
    padding: 4px 6px;
}

.app-menu:hover {
    color: #fff;
    text-decoration: underline;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.win-btn {
    width: 20px;
    height: 18px;
    background: #4a5141;
    border: 1px solid #717d60;
    color: #c9d0bb;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 4px;
}

.win-btn:hover {
    background: #555c4b;
    color: #fff;
}

.win-btn.close:hover {
    background: #ab3232;
}

.steam-content {
    flex: 1;
    display: flex;
    padding: 15px;
    gap: 15px;
    overflow: hidden;
    min-height: 0;
}

.profile-panel {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.profile-card {
    background: #393f32;
    border: 1px solid #58614b;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.avatar-container {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.avatar-frame-large {
    width: 128px;
    height: 128px;
    border: 3px solid #555;
    padding: 4px;
    background: #1a1a1a;
    position: relative;
    transition: border-color 0.3s;
}

.profile-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.avatar-frame-large.online {
    border-color: #57cbde;
}

.avatar-frame-large.dnd {
    border-color: #e74c3c;
}

.avatar-frame-large.offline {
    border-color: #777;
}

.avatar-frame-large.idle {
    border-color: #f1c40f;
}

.pro-username {
    color: #d6d6ce;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 1px 1px 0 #000;
    word-break: break-all;
}

.profile-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 5px;
    width: 100%;
    flex-shrink: 0;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #2a2e25;
    border: 1px solid #4a5141;
    padding: 4px 6px;
    font-size: 11px;
    color: #7a836d;
    text-decoration: none;
    border-radius: 2px;
}

.profile-link:hover {
    background: #393f32;
    color: #fff;
    border-color: #717d60;
}

.profile-link img {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

.rating-val {
    color: #d6b834;
    font-weight: bold;
}

.vac-icon {
    width: 16px;
    height: 16px;
}

.steam-id-tag {
    color: #7a836d;
    font-family: monospace;
    font-size: 11px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.status-box {
    margin-bottom: 15px;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border: 1px inset #4a5141;
    text-align: left;
    flex-shrink: 0;
}

.mini-activity-box {
    margin-bottom: 15px;
    width: 100%;
    background: #2a2e25;
    padding: 8px;
    border: 1px solid #4a5141;
    text-align: left;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.mab-icon {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 1px solid #111;
    flex-shrink: 0;
}

.mab-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    justify-content: center;
}

.mab-name {
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mab-details {
    color: #ccc;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mab-time {
    color: #90ba3c;
    font-size: 10px;
    margin-top: 2px;
}

.current-status {
    color: #57cbde;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 0;
}

.status-online {
    color: #57cbde;
}

.status-offline {
    color: #888;
}

.status-idle {
    color: #f1c40f;
}

.status-dnd {
    color: #e74c3c;
}

.status-ingame {
    color: #90ba3c;
}

.bio-box {
    text-align: left;
    width: 100%;
    color: #b0b6a6;
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 15px;
    padding: 5px;
    border-top: 1px solid #4a5141;
    border-bottom: 1px solid #4a5141;
    flex-shrink: 0;
}

.profile-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.1);
    padding: 5px;
    flex-shrink: 0;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #888;
}

.meta-val {
    color: #fff;
    font-weight: bold;
}

.music-module {
    background: #2a2e25;
    border: 1px solid #58614b;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.mm-header {
    font-size: 10px;
    color: #1ed760;
    font-weight: bold;
}

.mm-content {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mm-art-container {
    width: 44px;
    height: 44px;
    background: #000;
    border: 1px solid #444;
    flex-shrink: 0;
}

.mm-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mm-track {
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm-artist {
    color: #888;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm-vol-bar {
    height: 4px;
    background: #111;
    width: 100%;
    border-radius: 2px;
}

.mm-vol-fill {
    width: 0%;
    height: 100%;
    background: #1ed760;
    transition: width 0.5s ease;
}

.content-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.steam-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: -1px;
    z-index: 10;
    padding-left: 5px;
    flex-shrink: 0;
}

.steam-tab {
    background: #3e4637;
    border: 1px solid #58614b;
    border-bottom: none;
    color: #888;
    padding: 4px 12px;
    cursor: pointer;
    font-family: 'Tahoma';
    font-size: 11px;
    font-weight: bold;
}

.steam-tab.active {
    background: #5e6653;
    color: #fff;
    height: 28px;
    border-top: 2px solid #95a336;
    margin-top: -4px;
}

.steam-tab:hover {
    background: #4c5541;
    color: #ccc;
}

.tab-container {
    flex: 1;
    background: #3e4637;
    border: 1px solid #58614b;
    padding: 15px;
    overflow-y: auto;
    min-height: 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.tab-content {
    display: none;
    height: 100%;
    flex-direction: column;
}

.tab-content.active {
    display: flex;
}

.inner-header {
    background: linear-gradient(to right, #4d5543, transparent);
    color: #e1e6d8;
    font-weight: bold;
    font-size: 12px;
    padding: 4px;
    margin-bottom: 10px;
    border-left: 3px solid #95a336;
    flex-shrink: 0;
}

.activity-card-large {
    display: flex;
    gap: 15px;
    background: #2a2e25;
    padding: 10px;
    border: 1px solid #4a5141;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.act-large-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #000;
    flex-shrink: 0;
}

.act-large-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.act-name {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-state {
    color: #ccc;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-detail {
    color: #888;
    font-size: 11px;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-time {
    color: #666;
    font-size: 10px;
    margin-top: 5px;
}

.activity-log {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.act-row {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #33392d;
    padding: 5px;
    border: 1px solid #444;
}

.act-row img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    flex-shrink: 0;
}

.act-title {
    color: #fff;
    font-size: 11px;
}

.time {
    color: #888;
    font-size: 10px;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    align-content: flex-start;
}

.friend-card {
    background: #33392d;
    border: 1px solid #4a5141;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.1s;
}

.friend-card:hover {
    background: #454c3d;
    border-color: #95a336;
}

.fc-avatar {
    width: 32px;
    height: 32px;
    background: #000;
    padding: 1px;
    border: 1px solid #555;
    flex-shrink: 0;
}

.fc-avatar img {
    width: 100%;
    height: 100%;
}

.fc-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fc-name {
    color: #ccc;
    font-weight: bold;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-status {
    font-size: 10px;
    color: #666;
}

.fc-avatar.discord-bg {
    background: #5865F2;
}

.projects-list-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-card {
    background: #2a2e25;
    border: 1px solid #4a5141;
    padding: 8px 12px;
    text-decoration: none;
    transition: all 0.1s;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-card:hover {
    background: #393f32;
    border-color: #95a336;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.p-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.p-title {
    color: #e1e6d8;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
}

.p-desc {
    color: #fff;
    font-size: 11px;
    font-style: italic;
}

.p-tags {
    display: flex;
    gap: 5px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.p-tag {
    background: #1a1a1a;
    border: 1px solid #444;
    color: #7a836d;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
}

.bottom-statusbar {
    height: 24px;
    background: #3e4637;
    border-top: 1px solid #2c3026;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 10px;
    color: #888;
    flex-shrink: 0;
}

::-webkit-scrollbar {
    width: 8px;
    background: #2c3026;
}

::-webkit-scrollbar-thumb {
    background: #58614b;
    border: 1px solid #333;
}