/* ============================================
   FERAKEYS HUB - Main Stylesheet
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

/* ============================================
   COLOR SCHEME & VARIABLES
   ============================================ */

:root {
    --primary-color: #5f27cd;
    --secondary-color: #ff6b9d;
    --accent-color: #00d4d4;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --white: #ffffff;
    --bubble-pink: #ff6b9d;
    --bubble-blue: #00d4d4;
    --bubble-purple: #5f27cd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    background: var(--white);
    overflow-x: hidden;
}

/* ============================================
   BUBBLE BACKGROUND ANIMATION
   ============================================ */

@keyframes float-bubble {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(15px); }
    50% { transform: translateY(-40px) translateX(-15px); }
    75% { transform: translateY(-20px) translateX(20px); }
}

@keyframes bubble-pop {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -50px;
    border-radius: 50%;
    opacity: 0.6;
    animation: float-bubble linear infinite;
    pointer-events: none;
    cursor: pointer;
}

.bubble:hover {
    opacity: 0.8;
    cursor: pointer;
}

.bubble.pop {
    animation: bubble-pop 0.6s ease-out forwards;
    pointer-events: none;
}

.bubble-1 {
    width: 60px;
    height: 60px;
    left: 5%;
    background: linear-gradient(135deg, var(--bubble-pink), #ff8fa3);
    animation-duration: 12s;
    animation-delay: 0s;
}

.bubble-2 {
    width: 40px;
    height: 40px;
    left: 15%;
    background: linear-gradient(135deg, var(--bubble-blue), #00e5e5);
    animation-duration: 14s;
    animation-delay: 2s;
}

.bubble-3 {
    width: 50px;
    height: 50px;
    left: 25%;
    background: linear-gradient(135deg, var(--bubble-purple), #7d4ecd);
    animation-duration: 16s;
    animation-delay: 4s;
}

.bubble-4 {
    width: 45px;
    height: 45px;
    left: 35%;
    background: linear-gradient(135deg, var(--secondary-color), #ff7fab);
    animation-duration: 15s;
    animation-delay: 1s;
}

.bubble-5 {
    width: 55px;
    height: 55px;
    left: 50%;
    background: linear-gradient(135deg, var(--accent-color), #2dd4d4);
    animation-duration: 18s;
    animation-delay: 3s;
}

.bubble-6 {
    width: 35px;
    height: 35px;
    left: 65%;
    background: linear-gradient(135deg, var(--primary-color), #7d4ecd);
    animation-duration: 13s;
    animation-delay: 5s;
}

.bubble-7 {
    width: 70px;
    height: 70px;
    left: 75%;
    background: linear-gradient(135deg, var(--bubble-pink), #ff8fa3);
    animation-duration: 17s;
    animation-delay: 2.5s;
}

.bubble-8 {
    width: 42px;
    height: 42px;
    left: 85%;
    background: linear-gradient(135deg, var(--accent-color), #2dd4d4);
    animation-duration: 15s;
    animation-delay: 4.5s;
}

.bubble-9 {
    width: 52px;
    height: 52px;
    left: 95%;
    background: linear-gradient(135deg, var(--primary-color), #7d4ecd);
    animation-duration: 14s;
    animation-delay: 1.5s;
}

/* ============================================
   NAVBAR STYLING
   ============================================ */

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.admin-btn {
    margin-left: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 8px 20px;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.admin-btn:hover {
    transform: scale(1.05);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 150px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 157, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 212, 212, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    animation: slideInDown 1s ease-out;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color)) !important;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.5);
    color: white !important;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: 80px 0;
    background: var(--light-bg);
    position: relative;
}

.about-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.about-section h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
}

.about-section img {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.about-section img:hover {
    transform: scale(1.05);
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio-section {
    padding: 80px 0;
    position: relative;
}

.portfolio-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    background: white;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
}

.card-text {
    color: var(--dark-text);
    line-height: 1.6;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    position: relative;
}

.services-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
}

.services-section .card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.services-section .card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.4);
}

.services-section .card-title {
    color: var(--accent-color);
    font-weight: 700;
}

.services-section .card-text {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    padding: 80px 0;
    background: var(--light-bg);
    position: relative;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
}

.contact-section h3 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(95, 39, 205, 0.1);
}

.form-group label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-section a:hover {
    color: var(--secondary-color);
}

/* ============================================
   GAME SECTION - Bubble Clicker
   ============================================ */

.game-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.game-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.game-canvas {
    width: 100%;
    max-width: 500px;
    height: 500px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    margin: 20px auto;
    cursor: crosshair;
    display: block;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.game-button {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px;
    font-weight: 600;
}

.game-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-text);
    color: white;
    padding: 40px 0 20px;
    text-align: center;
    position: relative;
}

.footer p {
    margin: 10px 0;
}

.social-media {
    margin: 20px 0;
}

.social-media a {
    color: white;
    margin: 0 15px;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-media a:hover {
    color: var(--accent-color);
    transform: scale(1.2) rotateY(20deg);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate__animated {
    animation-duration: 1s !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .portfolio-section h2,
    .about-section h2,
    .services-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 20px;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .bubble {
        opacity: 0.3;
    }

    .game-canvas {
        height: 350px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
    max-width: 1200px;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ============================================
   ANIMATED MOVING LIGHTS
   ============================================ */

@keyframes move-light-vertical {
    0%, 100% { transform: translateY(0px) translateX(var(--x)); opacity: 0.3; }
    50% { transform: translateY(-100px) translateX(var(--x)); opacity: 0.8; }
}

@keyframes move-light-diagonal {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); opacity: 0.3; }
    25% { transform: translateY(-80px) translateX(40px) rotate(45deg); opacity: 0.6; }
    50% { transform: translateY(-120px) translateX(-40px) rotate(90deg); opacity: 0.8; }
    75% { transform: translateY(-60px) translateX(60px) rotate(135deg); opacity: 0.5; }
    100% { transform: translateY(0px) translateX(0px) rotate(180deg); opacity: 0.3; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(95, 39, 205, 0.5), 0 0 20px rgba(95, 39, 205, 0.3); }
    50% { box-shadow: 0 0 20px rgba(95, 39, 205, 0.8), 0 0 40px rgba(95, 39, 205, 0.6); }
}

.moving-lights-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.light {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
}

.light-1 {
    --x: 10%;
    background: radial-gradient(circle, rgba(95, 39, 205, 0.6) 0%, transparent 70%);
    top: 5%;
    left: 10%;
    animation: move-light-vertical 8s ease-in-out infinite;
}

.light-2 {
    --x: 5%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.6) 0%, transparent 70%);
    top: 10%;
    right: 8%;
    animation: move-light-vertical 10s ease-in-out infinite 1s;
}

.light-3 {
    --x: -8%;
    background: radial-gradient(circle, rgba(0, 212, 212, 0.6) 0%, transparent 70%);
    top: 20%;
    left: 5%;
    animation: move-light-diagonal 12s ease-in-out infinite 2s;
}

.light-4 {
    --x: 15%;
    background: radial-gradient(circle, rgba(95, 39, 205, 0.5) 0%, transparent 70%);
    top: 30%;
    right: 5%;
    animation: move-light-vertical 9s ease-in-out infinite 1.5s;
}

.light-5 {
    --x: -12%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.5) 0%, transparent 70%);
    top: 15%;
    right: 20%;
    animation: move-light-diagonal 11s ease-in-out infinite 0.5s;
}

.light-6 {
    --x: 8%;
    background: radial-gradient(circle, rgba(0, 212, 212, 0.5) 0%, transparent 70%);
    top: 35%;
    left: 15%;
    animation: move-light-vertical 7s ease-in-out infinite 2.5s;
}

/* ============================================
   SUZANNE AI CHAT WIDGET STYLES
   ============================================ */

.suzanne-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

/* Profile Picture Button */
.suzanne-toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #5f27cd;
    background: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(95, 39, 205, 0.3);
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: fixed !important;
    overflow: hidden;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 10001;
}

.suzanne-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.suzanne-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: #ff6b9d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    animation: bounce 2s infinite;
}

.suzanne-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(95, 39, 205, 0.4);
}

.suzanne-toggle.active {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Chat Window */
.suzanne-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    height: min(650px, calc(100vh - 40px));
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.2) translateY(30px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
}

.suzanne-chat.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* Header */
.suzanne-header {
    background: linear-gradient(135deg, #5f27cd 0%, #ff6b9d 100%);
    color: white;
    padding: 16px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suzanne-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.suzanne-header-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.suzanne-header-text h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.suzanne-status {
    margin: 4px 0 0 0;
    font-size: 12px;
    opacity: 0.95;
}

/* Close Button */
.suzanne-close {
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    background: rgba(255,255,255,0.06);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.suzanne-close:hover {
    transform: rotate(90deg) scale(1.05);
    background: rgba(255,255,255,0.16);
}

/* Ensure close button is always visible above toggle */
.suzanne-header {
    position: relative;
    z-index: 10002;
}

/* ensure the close control sits above header content */
.suzanne-header .suzanne-close {
    z-index: 10003;
}

/* limit messages area in very small viewports/webviews */
.suzanne-chat.open .suzanne-messages {
    max-height: calc(100vh - 220px);
}

/* Messages Container */
.suzanne-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.suzanne-messages::-webkit-scrollbar {
    width: 6px;
}

.suzanne-messages::-webkit-scrollbar-track {
    background: transparent;
}

.suzanne-messages::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

/* Messages */
.suzanne-message {
    display: flex;
    margin-bottom: 6px;
    animation: slideInUp 0.3s ease;
    align-items: flex-end;
}

.suzanne-bot {
    justify-content: flex-start;
}

.suzanne-user {
    justify-content: flex-end;
}

.suzanne-message-content {
    max-width: 75%;
    padding: 12px 14px;
    border-radius: 14px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
}

.suzanne-bot .suzanne-message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.suzanne-user .suzanne-message-content {
    background: linear-gradient(135deg, #5f27cd 0%, #ff6b9d 100%);
    color: white;
    border-bottom-right-radius: 2px;
}

/* Quick Replies */
.suzanne-quick-replies {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    margin-left: 0;
}

.suzanne-quick-reply-btn {
    background: white;
    border: 2px solid #5f27cd;
    color: #5f27cd;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    width: 100%;
    text-align: left;
}

.suzanne-quick-reply-btn:hover {
    background: #5f27cd;
    color: white;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(95, 39, 205, 0.3);
}

.suzanne-quick-reply-btn:active {
    transform: translateX(2px) scale(0.98);
}

/* Input Area */
.suzanne-input-container {
    padding: 12px;
    border-top: 1px solid #eee;
    background: white;
    border-radius: 0 0 16px 16px;
}

.suzanne-form {
    display: flex;
    gap: 8px;
}

.suzanne-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 24px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.suzanne-input:focus {
    border-color: #5f27cd;
    box-shadow: 0 0 0 3px rgba(95, 39, 205, 0.1);
}

.suzanne-input::placeholder {
    color: #999;
}

.suzanne-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5f27cd 0%, #ff6b9d 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.suzanne-send:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(95, 39, 205, 0.3);
}

.suzanne-send:active {
    transform: scale(0.95);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .suzanne-toggle {
        width: 60px;
        height: 60px;
    }

    .suzanne-chat {
        width: calc(100vw - 10px);
        height: calc(100vh - 10px);
        right: 5px;
        bottom: 5px;
        border-radius: 12px;
        max-width: 100vw;
        max-height: 100vh;
    }

    .suzanne-chat.open {
        transform: scale(1) translateY(0);
    }

    .suzanne-message-content {
        max-width: 85%;
    }

    .suzanne-header {
        padding: 12px;
    }

    .suzanne-header-text h3 {
        font-size: 14px;
    }

    .suzanne-status {
        font-size: 11px;
    }
}

/* Additional mobile fixes: ensure toggle doesn't overlap chat and close remains visible */
@media (max-width: 600px) {
    /* Make chat full-screen friendly on small devices */
    .suzanne-chat {
        width: calc(100vw - 10px);
        right: 5px;
        left: 5px;
        bottom: 5px;
        height: calc(100vh - 10px);
        border-radius: 12px;
        max-width: 100vw;
        max-height: 100vh;
    }

    /* Position the toggle slightly above the chat when closed to avoid overlap */
    .suzanne-toggle {
        right: 14px !important;
        bottom: 90px !important;
        position: fixed !important;
        z-index: 100005 !important;
        width: 62px !important;
        height: 62px !important;
    }

    /* When chat opens, hide the toggle but allow a fixed close button to remain visible */
    .suzanne-toggle.active {
        opacity: 0;
        pointer-events: none;
    }

    /* Ensure close button is fixed to the viewport so it's always accessible */
    .suzanne-close {
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        z-index: 200005 !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
        border-radius: 10px !important;
        background: rgba(0,0,0,0.45) !important;
        border: 1px solid rgba(255,255,255,0.18) !important;
        display: flex !important;
    }

    /* Ensure header content isn't pushed under the fixed close */
    .suzanne-header-content { padding-right: 56px; }

    /* Slightly reduce padding to make room for the close button */
    .suzanne-header { padding-right: 56px; }
}