
body {
    font-family: 'Comic Neue', cursive, sans-serif;
    background-color: #fffdf5;
    color: #333;
}

/* Override Bootstrap container for our design */
.container {
    max-width: 1140px;
}

/* Hero section */
.hero {
    background: rgb(254, 236, 55);
}

.logo {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2 {
    color: rgb(255, 119, 183);
}

/* Custom button styles that override Bootstrap */
.btn-success {
    background-color: rgb(177, 214, 144) !important;
    border-color: rgb(177, 214, 144) !important;
    color: #000 !important;
    font-weight: bold !important;
}

.btn-success:hover {
    background-color: rgb(157, 194, 124) !important;
    border-color: rgb(157, 194, 124) !important;
}

.btn-primary {
    background-color: rgb(255, 119, 183) !important;
    border-color: rgb(255, 119, 183) !important;
    color: #fff !important;
    font-weight: bold !important;
}

.btn-primary:hover {
    background-color: rgb(235, 99, 163) !important;
    border-color: rgb(235, 99, 163) !important;
}

button:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
}

/* Voice input button styling */
#voiceInputButton {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#voiceInputButton.listening {
    background-color: rgb(235, 99, 163) !important;
    animation: pulse 1.5s infinite;
}

#voiceInputButton.listening::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 1s infinite;
}

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

@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Voice button status text */
#voiceInputButton .status-text {
    margin-left: 8px;
    font-size: 14px;
}

/* Mobile-specific voice button enhancements */
@media (max-width: 768px) {
    #voiceInputButton {
        width: auto;
        min-width: 48px;
        height: 48px;
        padding: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #voiceInputButton svg {
        width: 20px;
        height: 20px;
    }

    #voiceInputButton.listening {
        box-shadow: 0 0 0 4px rgba(235, 99, 163, 0.4);
        width: auto;
        padding-right: 16px;
    }

    #voiceInputButton.listening .status-text {
        display: inline-block !important;
    }
}

/* Spinner animation */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #fff;
    border-top: 2px solid rgb(255, 119, 183);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
    display: none;
}

button.loading .spinner {
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image container styling */
#imageContainer {
    margin-top: 1rem;
}

#imageContainer img {
    max-width: 100%;
    height: auto;
    border: 2px dashed #aaa;
    padding: 1rem;
    background: #fdfdfd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 1.5rem 1rem;
    }

    .logo {
        width: 270px;
    }

    h1.display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 1rem;
    }

    .logo {
        width: 225px;
    }

    h1.display-4 {
        font-size: 1.8rem;
    }
}

/* Custom background colors */
.bg-light {
    background-color: #fff9e6 !important;
}

/* List styling */
.list-group-item.bg-light {
    background-color: transparent !important;
}

/* Footer styling */
footer {
    border-top: 1px solid rgba(0,0,0,0.1);
}
