
/* Animasi RGB Gradient */
        @keyframes rgbBackground {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        @keyframes rgbBorder {
            0% { border-color: #ff0000; }
            25% { border-color: #00ff00; }
            50% { border-color: #0000ff; }
            75% { border-color: #ffff00; }
            100% { border-color: #ff0000; }
        }
        
        @keyframes rgbShadow {
            0% { box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3); }
            25% { box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3); }
            50% { box-shadow: 0 10px 30px rgba(0, 0, 255, 0.3); }
            75% { box-shadow: 0 10px 30px rgba(255, 255, 0, 0.3); }
            100% { box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3); }
        }
        
        @keyframes rgbText {
            0% { color: #ff0000; }
            25% { color: #00ff00; }
            50% { color: #0000ff; }
            75% { color: #ffff00; }
            100% { color: #ff0000; }
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }
        
        :root {
            --primary-color: #006a63;
            --primary-light: #00aca0;
            --primary-dark: #5b21b6;
            --rgb-gradient: linear-gradient(90deg, #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0000ff, #8000ff, #ff0080, #ff0000);
            --background-light: #f8fafc;
            --background-dark: #0f172a;
            --card-light: #ffffff;
            --card-dark: #1e293b;
            --text-light: #1e293b;
            --text-dark: #f1f5f9;
            --text-secondary-light: #64748b;
            --text-secondary-dark: #cbd5e1;
            --border-light: #e2e8f0;
            --border-dark: #334155;
            --success-color: #10b981;
            --warning-color: #f59e0b;
            --danger-color: #006a63;
            --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-dark: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: background-color 0.3s, color 0.2s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            background-color: var(--background-light);
            color: var(--text-light);
            min-height: 100vh;
            overflow-x: hidden;
        }

        body.dark-mode {
            background-color: var(--background-dark);
            color: var(--text-dark);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header Styles */
        header {
            background: linear-gradient(135deg, #00615a, #00aca0);
            color: white;
            padding: 1rem 0;
            box-shadow: var(--shadow-light);
            position: relative;
            overflow: hidden;
        }
        
        header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--rgb-gradient);
            background-size: 400% 400%;
            animation: rgbBackground 8s ease infinite;
        }

        body.dark-mode header {
            box-shadow: var(--shadow-dark);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.8rem;
            font-weight: 700;
        }

        .logo i {
            font-size: 2rem;
        }

        .theme-toggle {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            position: relative;
            overflow: hidden;
        }
        
        .theme-toggle::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: var(--rgb-gradient);
            background-size: 400% 400%;
            border-radius: 50%;
            z-index: -1;
            animation: rgbBackground 6s ease infinite;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .theme-toggle:hover::before {
            opacity: 1;
        }

        .theme-toggle:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(30deg);
        }

        /* Main Content */
        .main-content {
            padding: 2rem 0;
        }

        .hero {
            text-align: center;
            margin-bottom: 2.5rem;
            padding: 2.5rem;
            background-color: var(--card-light);
            border-radius: 16px;
            box-shadow: var(--shadow-light);
            position: relative;
            overflow: hidden;
            border: 2px solid transparent;
            animation: rgbBorder 10s linear infinite, float 6s ease-in-out infinite;
        }
        
        .hero::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--rgb-gradient);
            background-size: 400% 400%;
            opacity: 0.05;
            z-index: 0;
            animation: rgbBackground 20s ease infinite;
        }

        body.dark-mode .hero {
            background-color: var(--card-dark);
            box-shadow: var(--shadow-dark);
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        .hero h1 {
            font-size: 2.8rem;
            margin-bottom: 1rem;
            background: var(--rgb-gradient);
            background-size: 400% 400%;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            animation: rgbBackground 8s ease infinite;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        body.dark-mode .hero h1 {
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        .hero p {
            font-size: 1.1rem;
            color: var(--text-secondary-light);
            max-width: 800px;
            margin: 0 auto;
        }

        body.dark-mode .hero p {
            color: var(--text-secondary-dark);
        }

        /* Search Section */
        .search-section {
            background-color: var(--card-light);
            padding: 2.5rem;
            border-radius: 16px;
            box-shadow: var(--shadow-light);
            margin-bottom: 2.5rem;
            border: 2px solid transparent;
            animation: rgbShadow 12s ease infinite;
            position: relative;
            overflow: hidden;
        }
        
        .search-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--rgb-gradient);
            background-size: 400% 400%;
            animation: rgbBackground 10s ease infinite;
        }

        body.dark-mode .search-section {
            background-color: var(--card-dark);
            box-shadow: var(--shadow-dark);
        }

        .search-box {
            display: flex;
            max-width: 800px;
            margin: 0 auto;
            border-radius: 50px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border: 2px solid transparent;
            animation: rgbBorder 15s linear infinite;
        }

        body.dark-mode .search-box {
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .search-input {
            flex: 1;
            padding: 1.2rem 1.8rem;
            border: none;
            font-size: 1.1rem;
            background-color: white;
            color: var(--text-light);
        }

        body.dark-mode .search-input {
            background-color: #334155;
            color: var(--text-dark);
        }

        .text-center {
          text-align: center;
        }
        .mt-1 {
          margin-top: 10px;
        }
        .fw-bold{
          font-weight: bold;
          color: var(--primary-color);
        }
        .text-danger{
          color: #ff2200;
        }

        .search-input:focus {
            outline: none;
        }

        .search-btn {
            background: linear-gradient(135deg, #00615a, #00aca0);
            color: white;
            border: none;
            padding: 0 2.5rem;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: all 0.3s;
        }
        
        .search-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--rgb-gradient);
            background-size: 400% 400%;
            transition: left 0.5s;
            z-index: 1;
        }
        
        .search-btn:hover::before {
            left: 0;
        }
        
        .search-btn span {
            position: relative;
            z-index: 2;
        }
        
        .search-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        /* Features Section */
        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 2.5rem;
        }

        .feature-card {
            background-color: var(--card-light);
            border-radius: 16px;
            padding: 2rem;
            box-shadow: var(--shadow-light);
            border-top: 4px solid transparent;
            animation: rgbBorder 20s linear infinite, float 5s ease-in-out infinite;
            animation-delay: calc(var(--card-index) * 0.2s);
            position: relative;
            overflow: hidden;
            transition: transform 0.3s;
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
        }
        
        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--rgb-gradient);
            background-size: 400% 400%;
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 0;
        }
        
        .feature-card:hover::before {
            opacity: 0.05;
            animation: rgbBackground 15s ease infinite;
        }

        body.dark-mode .feature-card {
            background-color: var(--card-dark);
            box-shadow: var(--shadow-dark);
        }
        
        .feature-card-content {
            position: relative;
            z-index: 1;
        }

        .feature-card i {
            font-size: 3rem;
            margin-bottom: 1.2rem;
            background: var(--rgb-gradient);
            background-size: 400% 400%;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            animation: rgbBackground 10s ease infinite;
        }

        .feature-card h3 {
            margin-bottom: 0.8rem;
            font-size: 1.5rem;
            background: linear-gradient(90deg, #00615a, #00aca0);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        body.dark-mode .feature-card h3 {
            background: linear-gradient(90deg, #00aca0, #5b21b6);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .feature-card p {
            color: var(--text-secondary-light);
        }
        
        body.dark-mode .feature-card p {
            color: var(--text-secondary-dark);
        }

        /* History Section */
        .history-section {
            background-color: var(--card-light);
            padding: 2.5rem;
            border-radius: 16px;
            box-shadow: var(--shadow-light);
            margin-bottom: 2.5rem;
            position: relative;
            overflow: hidden;
        }
        
        .history-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--rgb-gradient);
            background-size: 400% 400%;
            animation: rgbBackground 12s ease infinite;
        }

        body.dark-mode .history-section {
            background-color: var(--card-dark);
            box-shadow: var(--shadow-dark);
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .section-title {
            font-size: 1.5rem;
            background: linear-gradient(90deg, #00615a, #00aca0);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            font-weight: 700;
        }

        body.dark-mode .section-title {
            background: linear-gradient(90deg, #00aca0, #5b21b6);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .clear-btn {
            background-color: var(--danger-color);
            color: white;
            border: none;
            padding: 0.7rem 1.5rem;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            position: relative;
            overflow: hidden;
            transition: all 0.3s;
        }
        
        .clear-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--rgb-gradient);
            background-size: 400% 400%;
            transition: left 0.5s;
        }
        
        .clear-btn:hover::before {
            left: 0;
        }
        
        .clear-btn span {
            position: relative;
            z-index: 1;
        }
        
        .clear-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .history-list {
            list-style: none;
        }

        .history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.2rem;
            border-bottom: 1px solid var(--border-light);
            transition: all 0.3s;
            border-radius: 8px;
            margin-bottom: 0.5rem;
        }
        
        .history-item:hover {
            background-color: rgba(0, 106, 99, 0.05);
            transform: translateX(5px);
        }
        
        .history-item:hover .history-query {
            animation: rgbText 3s ease infinite;
        }

        body.dark-mode .history-item {
            border-bottom: 1px solid var(--border-dark);
        }
        
        body.dark-mode .history-item:hover {
            background-color: rgba(0, 172, 160, 0.1);
        }

        .history-item:last-child {
            border-bottom: none;
        }

        .history-query {
            color: var(--text-light);
            font-weight: 500;
            transition: color 0.3s;
        }

        body.dark-mode .history-query {
            color: var(--text-dark);
        }

        .history-time {
            color: var(--text-secondary-light);
            font-size: 0.9rem;
        }

        body.dark-mode .history-time {
            color: var(--text-secondary-dark);
        }

        /* Footer */
        footer {
            background-color: var(--card-light);
            color: var(--text-secondary-light);
            padding: 2.5rem 0;
            margin-top: 2.5rem;
            border-top: 1px solid var(--border-light);
            position: relative;
            overflow: hidden;
        }
        
        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--rgb-gradient);
            background-size: 400% 400%;
            animation: rgbBackground 15s ease infinite;
        }

        body.dark-mode footer {
            background-color: var(--card-dark);
            color: var(--text-secondary-dark);
            border-top: 1px solid var(--border-dark);
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1.5rem;
        }

        .footer-links {
            display: flex;
            gap: 1.5rem;
        }

        .footer-links a {
            color: var(--text-secondary-light);
            text-decoration: none;
            position: relative;
            padding: 0.3rem 0;
        }
        
        .footer-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--rgb-gradient);
            background-size: 400% 400%;
            transition: width 0.3s;
        }
        
        .footer-links a:hover::after {
            width: 100%;
            animation: rgbBackground 5s ease infinite;
        }

        body.dark-mode .footer-links a {
            color: var(--text-secondary-dark);
        }

        .footer-links a:hover {
            color: var(--primary-color);
        }

        .copyright {
            font-size: 0.9rem;
        }
        
        /* RGB Background Elements */
        .rgb-bg-element {
            position: fixed;
            width: 300px;
            height: 300px;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.1;
            z-index: -1;
            animation: float 20s ease-in-out infinite;
        }
        
        .rgb-bg-1 {
            top: 10%;
            left: 5%;
            background: radial-gradient(circle, #ff0000, #00ff00, #0000ff);
            animation-delay: 0s;
        }
        
        .rgb-bg-2 {
            top: 60%;
            right: 10%;
            background: radial-gradient(circle, #00ff00, #0000ff, #ff0000);
            animation-delay: 5s;
        }
        
        .rgb-bg-3 {
            bottom: 20%;
            left: 15%;
            background: radial-gradient(circle, #0000ff, #ff0000, #00ff00);
            animation-delay: 10s;
        }
        
        body.dark-mode .rgb-bg-element {
            opacity: 0.05;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 1rem;
            }
            
            .hero h1 {
                font-size: 2rem;
            }
            
            .search-box {
                flex-direction: column;
                border-radius: 16px;
            }
            
            .search-input, .search-btn {
                width: 100%;
                border-radius: 0;
                padding: 1rem;
            }
            
            .features {
                grid-template-columns: 1fr;
            }
            
            .footer-content {
                flex-direction: column;
                text-align: center;
            }
            
            .footer-links {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .rgb-bg-element {
                width: 200px;
                height: 200px;
            }
        }