﻿.custom-icon-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 8px;
    background-color: transparent;
    transition: all 0.3s ease;
}

    .custom-icon-button svg {
        width: 24px;
        height: 24px;
        transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
        color: inherit;
        display: block;
    }

    .custom-icon-button:hover svg,
    .custom-icon-button:focus svg {
        color: var(--mud-palette-secondary);
    }

    .custom-icon-button:hover,
    .custom-icon-button:focus {
        background-color: transparent !important;
        box-shadow: none !important;
    }

    .custom-icon-button.recording svg {
        transform: scale(1.15);
        opacity: 1;
        animation: pulse 1.5s ease-in-out infinite;
    }

    .custom-icon-button.not-recording svg {
        transform: scale(1);
        opacity: 0.8;
    }


    .custom-icon-button.muted {
        transition: all 0.8s ease;
    }

        .custom-icon-button.muted svg {
            transform: rotate(360deg) scale(1);
            opacity: 0.7;
            color: var(--mud-palette-error);
        }

    .custom-icon-button.unmuted svg {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }

    .custom-icon-button.on svg {
        transform: scale(1.1) rotate(5deg);
        opacity: 1;
        animation: wiggle 0.5s ease-in-out;
    }

    .custom-icon-button.off svg {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }


.custom-generate-button {
    width: auto !important;
    height: auto !important;
    padding: 4px !important;
    background-color: transparent;
    overflow: visible;
}

    .custom-generate-button .mud-icon-button-label {
        width: auto !important;
        height: auto !important;
    }

.generate-button-content {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.button-text {
    display: inline-block;
    transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.3s cubic-bezier(0.4,0,0.2,1), max-width 0.3s cubic-bezier(0.4,0,0.2,1);
    transform-origin: right center;
    opacity: 1;
    max-width: 200px;
    transform: translateX(0) scaleX(1);
}

    .button-text.collapsing {
        opacity: 0;
        max-width: 0;
        transform: translateX(-20px) scaleX(0);
        transition-delay: 0s, 0s, 0s;
    }

    .button-text.expanding {
        opacity: 1;
        max-width: 200px;
        transform: translateX(0) scaleX(1);
        transition-delay: 0.4s, 0.4s, 0.4s;
    }

.icon-container {
    position: relative;
    width: 32px !important;
    height: 32px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.animated-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    pointer-events: none;
}

    .animated-icon.logo {
        z-index: 2;
        transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1) 0.3s, transform 0.4s cubic-bezier(0.4,0,0.2,1) 0.3s;
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }

        .animated-icon.logo.spinning {
            animation: logo-spin-pulse 1.2s cubic-bezier(0.4,0,0.2,1) infinite;
        }

        .animated-icon.logo.static {
            animation: none;
            opacity: 1;
            transform: rotate(0deg) scale(1);
        }

    .animated-icon svg {
        width: 32px !important;
        height: 32px !important;
        padding: 0;
    }


@keyframes logo-spin-pulse {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }

    40% {
        transform: rotate(144deg) scale(1.15);
        opacity: 0.95;
    }

    60% {
        transform: rotate(216deg) scale(0.85);
        opacity: 0.85;
    }

    80% {
        transform: rotate(288deg) scale(1.08);
        opacity: 0.95;
    }

    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1.15);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.75;
    }
}

@keyframes wiggle {
    0% {
        transform: scale(1.1) rotate(5deg);
    }

    25% {
        transform: scale(1.1) rotate(-5deg);
    }

    50% {
        transform: scale(1.1) rotate(4deg);
    }

    75% {
        transform: scale(1.1) rotate(-4deg);
    }

    100% {
        transform: scale(1.1) rotate(5deg);
    }
}

.section-card {
    margin-bottom: 1rem;
}

.section-card-content {
    padding: 0 !important;
}