/* Windows XP Interface Styles */

/* Gadu-Gadu Popup Styles */
.gadu-popup {
    position: fixed;
    top: 100px;
    right: 50px;
    width: 250px;
    height: 400px;
    background: #f0f0f0;
    border: 2px outset #c0c0c0;
    font-family: 'Tahoma', Arial, sans-serif;
    font-size: 11px;
    z-index: 1000;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.5);
}

.gadu-titlebar {
    background: linear-gradient(to bottom, #0080ff, #0060cc);
    color: white;
    padding: 2px 4px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #0060cc;
}

.gadu-title {
    font-weight: bold;
    font-size: 12px;
}

.gadu-icon {
    margin-right: 4px;
}

.gadu-title-logo {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    object-fit: contain;
}

.gadu-controls button {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    width: 16px;
    height: 14px;
    font-size: 10px;
    margin-left: 2px;
    cursor: pointer;
}

.gadu-controls button:hover {
    background: #d0d0d0;
}

.gadu-controls button:active {
    border: 1px inset #c0c0c0;
}

.gadu-content {
    background: #ff8040;
    height: calc(100% - 25px);
    padding: 4px;
}

.gadu-status {
    background: #ffb080;
    border: 1px inset #c0c0c0;
    padding: 2px 4px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background: #00ff00;
    border: 1px solid #00cc00;
}

.status-indicator.away {
    background: #ffff00;
    border: 1px solid #cccc00;
}

.status-indicator.offline {
    background: #ff0000;
    border: 1px solid #cc0000;
}

.status-dropdown {
    font-size: 10px;
    margin-left: auto;
}

.gadu-contacts {
    background: #ffb080;
    border: 1px inset #c0c0c0;
    height: 120px;
    overflow-y: auto;
    margin-bottom: 4px;
}

.contact-item {
    padding: 1px 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 11px;
}

.contact-item:hover {
    background: #ffc080;
}

.contact-item.active {
    background: #0080ff;
    color: white;
}

.gadu-chat {
    background: #ffb080;
    border: 1px inset #c0c0c0;
    height: calc(100% - 150px);
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #ff8040;
    padding: 2px 4px;
    font-weight: bold;
    border-bottom: 1px solid #cc6020;
    font-size: 10px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 4px;
    background: #ffffcc;
    font-size: 10px;
    line-height: 1.3;
}

.message {
    margin-bottom: 2px;
}

.msg-time {
    color: #666;
    font-size: 9px;
}

.msg-user {
    font-weight: bold;
    color: #000080;
}

.msg-text {
    color: #000;
}

.msg-text img {
    vertical-align: middle;
    margin: 0 2px;
}

.chat-input {
    display: flex;
    padding: 2px;
    background: #ff8040;
    border-top: 1px solid #cc6020;
}

.chat-input input {
    flex: 1;
    font-size: 10px;
    padding: 1px 2px;
    border: 1px inset #c0c0c0;
}

.chat-input button {
    font-size: 9px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    padding: 1px 4px;
    margin-left: 2px;
    cursor: pointer;
}

/* Windows XP Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, #245edb, #1941a5);
    border-top: 1px solid #4a90e2;
    display: flex;
    align-items: center;
    z-index: 999;
    font-family: 'Tahoma', Arial, sans-serif;
    font-size: 11px;
}

.start-button {
    background: linear-gradient(to bottom, #35c837, #2da02f);
    border: 1px outset #35c837;
    border-radius: 3px;
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    margin: 2px 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.3);
}

.start-button:hover {
    background: linear-gradient(to bottom, #40d642, #35c837);
}

.start-button:active {
    border: 1px inset #35c837;
    background: linear-gradient(to bottom, #2da02f, #35c837);
}

.start-icon {
    font-size: 14px;
}

.taskbar-items {
    flex: 1;
    display: flex;
    gap: 2px;
    padding: 0 4px;
}

.taskbar-item {
    background: linear-gradient(to bottom, #3168dc, #245edb);
    border: 1px outset #3168dc;
    color: white;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 11px;
}

.taskbar-item.active {
    background: linear-gradient(to bottom, #1941a5, #245edb);
    border: 1px inset #3168dc;
}

.taskbar-item:hover:not(.active) {
    background: linear-gradient(to bottom, #4a90e2, #3168dc);
}

.taskbar-item.minimized {
    background: linear-gradient(to bottom, #6699ff, #4488ee);
    border: 1px outset #6699ff;
}

.taskbar-icon {
    font-size: 12px;
}

.taskbar-logo {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    object-fit: contain;
}

.system-tray {
    background: linear-gradient(to bottom, #3168dc, #245edb);
    border: 1px inset #3168dc;
    padding: 4px 8px;
    margin: 2px 4px 2px 0;
    color: white;
    font-size: 11px;
    min-width: 50px;
    text-align: center;
}

/* Windows XP Start Menu */
.start-menu {
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 400px;
    height: 450px;
    background: #f0f0f0;
    border: 2px outset #c0c0c0;
    border-bottom: none;
    font-family: 'Tahoma', Arial, sans-serif;
    font-size: 11px;
    z-index: 1002;
    box-shadow: 3px 0px 10px rgba(0,0,0,0.3);
}

.start-menu-header {
    background: linear-gradient(to right, #245edb, #4a90e2);
    color: white;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #1941a5;
}

.start-user-icon {
    font-size: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 4px;
}

.start-username {
    font-weight: bold;
    font-size: 13px;
}

.start-computer {
    font-size: 10px;
    opacity: 0.9;
}

.start-menu-content {
    display: flex;
    height: calc(100% - 50px);
}

.start-menu-left {
    flex: 1;
    background: #ffffff;
    border-right: 1px solid #c0c0c0;
    padding: 4px 0;
}

.start-menu-right {
    width: 160px;
    background: #e8f4fd;
    padding: 4px 0;
}

.start-menu-item {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.1s;
}

.start-menu-item:hover {
    background: #316ac5;
    color: white;
}

.start-menu-item.pinned {
    background: #f8f8f8;
    border-left: 3px solid #ff6600;
    font-weight: bold;
}

.start-menu-item.pinned:hover {
    background: #316ac5;
    color: white;
}

.start-menu-item.logout {
    background: #ffeee6;
    border-top: 1px solid #ddd;
}

.start-menu-item.logout:hover {
    background: #ff6600;
    color: white;
}

.start-item-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.start-item-logo {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    object-fit: contain;
}

.start-item-text {
    font-size: 11px;
}

.start-menu-separator {
    height: 1px;
    background: #c0c0c0;
    margin: 4px 12px;
}

/* Windows Update Popup */
.windows-update-popup {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 300px;
    background: #f0f0f0;
    border: 2px outset #c0c0c0;
    font-family: 'Tahoma', Arial, sans-serif;
    font-size: 11px;
    z-index: 1005;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.5);
}

.update-titlebar {
    background: linear-gradient(to bottom, #0080ff, #0060cc);
    color: white;
    padding: 2px 6px;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.update-content {
    padding: 15px;
}

.update-progress {
    width: 100%;
    height: 20px;
    background: white;
    border: 1px inset #c0c0c0;
    margin: 10px 0;
    overflow: hidden;
}

.update-bar {
    height: 100%;
    background: linear-gradient(to right, #0080ff, #4da6ff);
    width: 0%;
    animation: updateProgress 60s linear infinite;
}

@keyframes updateProgress {
    0% { width: 0%; }
    95% { width: 97%; }
    100% { width: 0%; }
}

.update-text {
    font-size: 11px;
    margin: 5px 0;
}

/* Connection Slow Popup */
.connection-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    background: #f0f0f0;
    border: 2px outset #c0c0c0;
    font-family: 'Tahoma', Arial, sans-serif;
    font-size: 11px;
    z-index: 1006;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.5);
}

.connection-content {
    padding: 20px;
    text-align: center;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #c0c0c0;
    border-top: 3px solid #0080ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 15px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Add to Favorites Popup */
.favorites-popup {
    position: fixed;
    top: 30%;
    right: 20px;
    width: 280px;
    background: #f0f0f0;
    border: 2px outset #c0c0c0;
    font-family: 'Tahoma', Arial, sans-serif;
    font-size: 11px;
    z-index: 1007;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.5);
}

.favorites-content {
    padding: 15px;
    text-align: center;
}

.favorites-icon {
    font-size: 32px;
    margin-bottom: 10px;
}
