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

        body {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            min-height: 100vh;
            background: linear-gradient(135deg, #87CEEB, #B0E0E6, #E0F6FF, #F0F8FF);
            background-size: 400% 400%;
            animation: gradientShift 10s ease infinite;
            padding-top: 90px;
            padding-bottom: 80px;
            font-family: 'Poppins', sans-serif;
            transition: all 0.3s ease;
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .navbar {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background: rgba(70, 130, 180, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
        }

        .nav-logo {
            font-family: 'Orbitron', monospace;
            font-size: 28px;
            font-weight: 900;
            color: white;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            letter-spacing: 2px;
            background: linear-gradient(45deg, #ffffff, #e6f3ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav-controls {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .toggle-btn, .menu-btn {
            padding: 10px 15px;
            border: none;
            cursor: pointer;
            font-size: 16px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
        }

        .toggle-btn:hover, .menu-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        .wrapper {
            width: 100%;
            max-width: 450px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 25px;
            margin: 10px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
        }

        .wrapper header {
            font-family: 'Orbitron', monospace;
            font-size: 28px;
            font-weight: 700;
            text-align: center;
            color: #4682B4;
            margin-bottom: 20px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
            letter-spacing: 1px;
        }

        .search {
            position: relative;
            margin-bottom: 15px;
        }

        .search input {
            height: 55px;
            width: 100%;
            outline: none;
            font-size: 16px;
            padding: 0 50px 0 20px;
            border-radius: 12px;
            border: 2px solid #87CEEB;
            background: rgba(255, 255, 255, 0.9);
            transition: all 0.3s ease;
        }

        .search input::placeholder {
            color: #666;
        }

        .search input:focus {
            border-color: #4682B4;
            box-shadow: 0 0 20px rgba(70, 130, 180, 0.3);
        }

        .search i {
            position: absolute;
            top: 50%;
            right: 20px;
            color: #87CEEB;
            transform: translateY(-50%);
            font-size: 18px;
            pointer-events: none;
        }

        .search input:focus ~ i {
            color: #4682B4;
        }

        .info-text {
            font-size: 14px;
            color: #666;
            text-align: center;
            margin-bottom: 15px;
            line-height: 1.5;
        }

        .wrapper ul {
            height: 0;
            opacity: 0;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .wrapper.active .info-text {
            display: none;
        }

        .wrapper.active ul {
            height: auto;
            max-height: 300px;
            opacity: 1;
        }

        .wrapper ul li {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            padding-bottom: 10px;
            justify-content: space-between;
            border-bottom: 1px solid #e0e0e0;
        }

        ul li:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        ul .word p {
            font-size: 24px;
            font-weight: 700;
            color: #4682B4;
        }

        ul .word span {
            font-size: 14px;
            color: #666;
        }

        ul .word i {
            cursor: pointer;
            font-size: 18px;
            color: #87CEEB;
            padding: 10px;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        ul .word i:hover {
            background: rgba(135, 206, 235, 0.2);
            transform: scale(1.1);
        }

        .content li .details {
            padding-left: 15px;
            border-radius: 8px;
            border-left: 4px solid #87CEEB;
        }

        .content li .details p {
            font-size: 18px;
            font-weight: 600;
            color: #4682B4;
            margin-bottom: 5px;
        }

        .content li .details span {
            font-size: 15px;
            color: #555;
            line-height: 1.4;
        }

        .synonyms .details .list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .synonyms .details .list span {
            cursor: pointer;
            padding: 4px 8px;
            background: rgba(220, 20, 60, 0.1);
            border-radius: 6px;
            color: #DC143C;
            transition: all 0.3s ease;
            border: 1px solid rgba(220, 20, 60, 0.3);
            font-weight: 500;
        }

        .synonyms .details .list span:hover {
            background: #DC143C;
            color: white;
            transform: translateY(-2px);
        }

        .content {
            max-height: 220px;
            overflow-y: auto;
        }

        .content::-webkit-scrollbar {
            width: 6px;
        }

        .content::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .content::-webkit-scrollbar-thumb {
            background: #87CEEB;
            border-radius: 10px;
        }

        /* Search History Sidebar */
        .history-sidebar {
            position: fixed;
            top: 0;
            right: -350px;
            width: 350px;
            height: 100vh;
            background: rgba(70, 130, 180, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1001;
            transition: right 0.3s ease;
            padding: 80px 20px 20px;
            overflow-y: auto;
        }

        .history-sidebar.active {
            right: 0;
        }

        .history-sidebar h3 {
            color: white;
            text-align: center;
            margin-bottom: 20px;
            font-size: 24px;
            font-family: 'Orbitron', monospace;
            font-weight: 700;
        }

        .history-sidebar .close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            padding: 10px;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .history-sidebar .close-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        #searchHistory {
            margin-bottom: 20px;
        }

        #searchHistory span {
            display: block;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            padding: 12px 16px;
            margin: 8px 0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        #searchHistory span:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateX(5px);
        }

        #clearHistory {
            width: 100%;
            padding: 12px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 16px;
        }

        #clearHistory:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        /* Overlay */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Footer */
        footer {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: rgba(70, 130, 180, 0.95);
            backdrop-filter: blur(10px);
            text-align: center;
            padding: 15px;
            z-index: 999;
        }

        .foot-panel {
            color: white;
            font-size: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            font-family: 'Poppins', sans-serif;
            font-weight: 500;
        }

        .foot-panel i {
            color: #ff6b6b;
            animation: heartbeat 2s infinite;
        }

        @keyframes heartbeat {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }

        /* Dark mode */
        body.dark-mode {
            background: linear-gradient(135deg, #000428, #004e92, #001a2e, #000000);
            background-size: 400% 400%;
            animation: gradientShift 10s ease infinite;
        }

        .dark-mode .navbar {
            background: rgba(0, 20, 40, 0.95);
        }

        .dark-mode .nav-logo {
            background: linear-gradient(45deg, #ffffff, #87CEEB);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .dark-mode .wrapper {
            background: rgba(15, 15, 30, 0.95);
            color: white;
        }

        .dark-mode .wrapper header {
            color: #87CEEB;
        }

        .dark-mode .search input {
            background: rgba(30, 30, 50, 0.9);
            color: white;
            border-color: #87CEEB;
        }

        .dark-mode .search input::placeholder {
            color: #bbb;
        }

        .dark-mode .info-text {
            color: #bbb;
        }

        .dark-mode ul .word p {
            color: #87CEEB;
        }

        .dark-mode ul .word span {
            color: #bbb;
        }

        .dark-mode ul .word i {
            color: #87CEEB;
        }

        .dark-mode ul .word i:hover {
            background: rgba(135, 206, 235, 0.2);
        }

        .dark-mode .content li .details {
            border-left-color: #87CEEB;
        }

        .dark-mode .content li .details p {
            color: #87CEEB;
        }

        .dark-mode .content li .details span {
            color: #FFD700;
        }

        .dark-mode .synonyms .details .list span {
            background: rgba(220, 20, 60, 0.2);
            color: #DC143C;
            border-color: rgba(220, 20, 60, 0.5);
        }

        .dark-mode .synonyms .details .list span:hover {
            background: #DC143C;
            color: white;
        }

        .dark-mode .content::-webkit-scrollbar-track {
            background: #333;
        }

        .dark-mode .content::-webkit-scrollbar-thumb {
            background: #87CEEB;
        }

        .dark-mode .history-sidebar {
            background: rgba(0, 20, 40, 0.95);
        }

        .dark-mode footer {
            background: rgba(0, 20, 40, 0.95);
        }

        .dark-mode .wrapper ul li {
            border-bottom-color: #333;
        }

        /* Mobile responsiveness */
        @media (max-width: 768px) {
            .wrapper {
                margin: 10px;
                padding: 20px;
            }

            .history-sidebar {
                width: 100%;
                right: -100%;
            }

            .navbar {
                padding: 10px 15px;
            }

            .nav-logo {
                font-size: 20px;
            }

            .toggle-btn, .menu-btn {
                padding: 8px 12px;
                font-size: 14px;
            }

            .wrapper header {
                font-size: 24px;
            }

            body {
                padding-top: 75px;
                padding-bottom: 70px;
            }
        }

        @media (max-width: 480px) {
            .wrapper {
                padding: 15px;
            }

            .search input {
                height: 50px;
                font-size: 14px;
            }

            .wrapper header {
                font-size: 20px;
            }
        }
