body {
    background: linear-gradient(45deg, #FFB6C1, #87CEEB, #98FB98);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

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

.card {
    border-radius: 25px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border: none;
    background: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
    transform-style: preserve-3d;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    border-radius: 25px 25px 0 0 !important;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4) !important;
    padding: 20px !important;
}

.card-header h2 {
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: bounce 2s infinite;
}

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

.btn {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 50px;
    font-size: 1.2em;
    padding: 15px;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, #4CAF50, #45B649);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* Only animate the next action button */
.btn[onclick] {
    animation: buttonBlink 2s infinite;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.speech-feedback {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    animation: fadeInOut 3s ease-in-out;
    z-index: 1000;
}

.current-action {
    animation: pulse 2s infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    10% { opacity: 1; transform: translate(-50%, 0); }
    90% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}

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

.form-control {
    border-radius: 50px;
    padding: 12px 25px;
    border: 2px solid #ddd;
    transition: all 0.3s;
    font-size: 1.1em;
}

.form-control:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.2);
}

.form-label {
    font-size: 1.2em;
    color: #555;
    margin-left: 10px;
}

select.form-control {
    cursor: pointer;
    background-image: linear-gradient(45deg, #fff 90%, #f8f9fa 90%);
}

.mic-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 2;
}

.mic-button:hover {
    transform: translateY(-50%) scale(1.1);
}

h3 {
    color: #444;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}