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

        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            user-select: none;
        }

        .header {
            color: white;
            text-align: center;
            margin-bottom: 30px;
        }

        .header h1 {
            font-size: 2.5em;
            font-weight: 300;
            margin-bottom: 10px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .header p {
            font-size: 1.1em;
            opacity: 0.9;
        }

        .watch-container {
            position: relative;
            width: 320px;
            height: 390px;
            background: radial-gradient(circle, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 100%);
            border-radius: 60px;
            border: 8px solid #333;
            box-shadow: 
                0 0 30px rgba(0,0,0,0.8),
                inset 0 0 30px rgba(255,255,255,0.1);
            overflow: hidden;
            cursor: grab;
        }

        .watch-container:active {
            cursor: grabbing;
        }

        .apps-container {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 1000px;
            height: 1000px;
            transform: translate(-50%, -50%);
            transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .app-icon {
            position: absolute;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            transform-origin: center;
        }

        .app-icon:hover {
            z-index: 100;
        }

        .app-icon:active {
            transform: scale(0.9);
        }

        .app-icon .icon {
            color: white;
            z-index: 2;
            font-size: 1em;
        }

        .app-icon .label {
            position: absolute;
            bottom: -25px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 10px;
            color: white;
            opacity: 0;
            transition: opacity 0.3s ease;
            white-space: nowrap;
            text-shadow: 0 1px 3px rgba(0,0,0,0.8);
            pointer-events: none;
        }

        .app-icon:hover .label {
            opacity: 1;
        }

        /* Градиенты для иконок */
        .app-0 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
        .app-1 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
        .app-2 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
        .app-3 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
        .app-4 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
        .app-5 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
        .app-6 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
        .app-7 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
        .app-8 { background: linear-gradient(135deg, #a8c0ff 0%, #3f2b96 100%); }
        .app-9 { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%); }
        .app-10 { background: linear-gradient(135deg, #2ed573 0%, #7bed9f 100%); }
        .app-11 { background: linear-gradient(135deg, #3742fa 0%, #2f3542 100%); }
        .app-12 { background: linear-gradient(135deg, #ff3838 0%, #ff9ff3 100%); }
        .app-13 { background: linear-gradient(135deg, #7d5fff 0%, #7158e2 100%); }
        .app-14 { background: linear-gradient(135deg, #3d4465 0%, #11998e 100%); }
        .app-15 { background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%); }
        .app-16 { background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%); }
        .app-17 { background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%); }
        .app-18 { background: linear-gradient(135deg, #00b894 0%, #00cec9 100%); }

        .controls {
            margin-top: 40px;
            margin-bottom: 40px;
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .btn {
            padding: 12px 25px;
            background: rgba(255,255,255,0.2);
            border: none;
            border-radius: 25px;
            color: white;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.3);
        }

        .btn:hover {
            background: rgba(255,255,255,0.3);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        .edit-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            overflow-y: auto;
        }

        .modal-content {
            background: white;
            padding: 30px;
            border-radius: 20px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            margin: 20px;
        }

        .modal-content h2 {
            margin-bottom: 20px;
            color: #333;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #555;
            font-weight: 500;
        }

        .form-group input, .form-group select {
            width: 100%;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 10px;
            font-size: 14px;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus, .form-group select:focus {
            outline: none;
            border-color: #667eea;
        }

        .modal-buttons {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }

        .modal-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .modal-btn.save {
            background: #667eea;
            color: white;
        }

        .modal-btn.cancel {
            background: #ddd;
            color: #333;
        }

        .modal-btn:hover {
            opacity: 0.8;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .app-icon.pulse {
            animation: pulse 0.6s ease-in-out;
        }

        @media (max-width: 480px) {
            .watch-container {
                width: 280px;
                height: 340px;
            }
            
            .header h1 {
                font-size: 2em;
            }
            
            .controls {
                margin-top: 30px;
                margin-bottom: 30px;
            }
        }
