* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.desktop {
    width: 100%;
    height: 100%;
    position: relative;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15), transparent 50%);
}

.control-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 280px;
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.stat {
    text-align: center;
    flex-grow: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.main-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    flex-grow: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: #e0e0e0;
    border: 1px solid #ccc;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: #ccc;
}

.lang-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.window {
    position: absolute;
    min-width: 300px;
    min-height: 200px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.window.minimized {
    transform: scale(0.1);
    opacity: 0;
    pointer-events: none;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0;
    z-index: 999;
}

.window-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    border-bottom: 1px solid #e0e0e0;
    user-select: none;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}

.window-icon {
    width: 20px;
    height: 20px;
    font-size: 16px;
    text-align: center;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-control {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.minimize {
    background: #ffd700;
    color: #333;
}

.minimize:hover {
    background: #ffed4a;
    transform: scale(1.1);
}

.maximize {
    background: #28a745;
    color: white;
}

.maximize:hover {
    background: #34ce57;
    transform: scale(1.1);
}

.close {
    background: #dc3545;
    color: white;
}

.close:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

.window-content {
    padding: 20px;
    height: calc(100% - 60px);
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
}

@keyframes windowAppear {
    from {
        transform: scale(0.8) rotate(5deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.window {
    animation: windowAppear 0.5s ease;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    z-index: 1002;
    transform: translateX(calc(100% + 20px));
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.notification.info {
    background: #17a2b8;
    box-shadow: 0 44px 15px rgba(23, 162, 184, 0.3);
    min-width: 300px;
    text-align: center;
}

.notification-content {
    white-space: pre-line;
}

.notification-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
}
