body {
    margin: 0;
    overflow: hidden;
    background-color: #0b1120;
    color: #eaeaea;
    cursor: none;
    /* Hide default cursor */
}

/* Show default cursor on touch devices */
@media (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-ring {
        display: none !important;
    }
}

canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.content-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    /* Allow clicks to pass through wrapper */
}

/* Responsive Layout Logic */
@media (min-width: 768px) {
    .content-wrapper {
        width: 50%;
        justify-content: center;
        padding: 4rem;
    }

    .glass-panel {
        border-radius: 2rem 0 0 2rem;
        height: auto;
        max-height: 90vh;
        animation: slideIn 1s ease-out forwards;
    }
}

@media (max-width: 767px) {
    .content-wrapper {
        width: 100%;
        justify-content: flex-end;
        /* Align bottom on mobile */
        padding: 1rem;
        background: linear-gradient(to top,
                rgba(11, 17, 32, 0.95) 0%,
                rgba(11, 17, 32, 0.6) 50%,
                transparent 100%);
    }

    .glass-panel {
        border-radius: 1.5rem 1.5rem 0 0;
        /* Rounded top only */
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 75vh;
        width: 100%;
        animation: slideUp 0.8s ease-out forwards;
        padding: 1.5rem !important;
        /* Smaller padding on mobile */
    }
}

/* Glass Panel Base Styles */
.glass-panel {
    background: rgba(30, 27, 54, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    pointer-events: auto;
    /* Enable interaction inside panel */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-col: column;
}

/* Cursor Styles */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: #2dd4bf;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999;
    box-shadow: 0 0 15px #2dd4bf;
    transition: width 0.2s, height 0.2s;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(45, 212, 191, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 998;
    transition: all 0.1s ease-out;
}

.text-gradient {
    background: linear-gradient(135deg, #2dd4bf 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scrollbar untuk hasil AI */
.custom-scroll::-webkit-scrollbar {
    width: 4px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #2dd4bf;
    border-radius: 2px;
}

.typing-cursor::after {
    content: "|";
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}