/* ====================================
   Talking Overlay Styles
   ==================================== */
.talking-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(1200px 800px at 50% 40%, rgba(82, 82, 226, 0.12), rgba(2, 6, 23, 0.9));
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px 24px 28px;
    z-index: 1000000;
}

.talking-overlay-toolbar {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.talking-overlay-actions {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(82, 82, 226, 0.35);
    box-shadow: 0 8px 24px rgba(82, 82, 226, 0.15);
}

.talking-overlay-center {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.talking-overlay-text {
    color: #2eb969;
    font-weight: 600;
    text-shadow: 0 0 18px rgba(82, 82, 226, 0.35);
}

.talking-overlay-controls {
    width: 100%;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.talking-overlay-preview {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 280px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(82, 82, 226, 0.4);
    box-shadow: 0 8px 24px rgba(82, 82, 226, 0.2);
}

/* Pulse Animation */
.pulse-ring {
    position: relative;
    width: 220px;
    height: 220px;
}

.pulse-ring .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid #2eb969;
    border-radius: 50%;
    animation: ringPulse 2.6s ease-out infinite;
}

.pulse-ring .ring-2 {
    animation-delay: 0.6s;
}

.pulse-ring .ring-3 {
    animation-delay: 1.2s;
}

.pulse-ring .center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2eb969;
    box-shadow: 0 0 24px rgba(82, 82, 226, 0.7);
}

@keyframes ringPulse {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.6);
    }
    70% {
        opacity: 0.25;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Action Buttons */
.action-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.action-button.active {
    background: #2eb969;
    border-color: #2eb969;
}

.action-button.no-action {
    cursor: default;
    pointer-events: none;
}

.action-button.outlined {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.action-button .material-symbols-outlined {
    font-size: 24px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .talking-overlay {
        padding: 20px 16px;
    }

    .talking-overlay-actions {
        position: static;
        flex-direction: row;
        transform: none;
        margin-top: 20px;
    }

    .talking-overlay-preview {
        width: 160px;
        height: 90px;
        bottom: 80px;
        right: 16px;
    }

    .pulse-ring {
        width: 160px;
        height: 160px;
    }
}

/* ====================================
   AI Interface Components
   ==================================== */
.ai-button {
    background: linear-gradient(135deg, #2eb969 0%, #14284a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 12px 24px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .ai-button::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .ai-button:hover {
        background: linear-gradient(135deg, #2eb969 20%, #14284a 80%);
        box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
        transform: translateY(-2px);
    }

        .ai-button:hover::before {
            left: 100%;
        }

    .ai-button:active {
        transform: translateY(0px);
        box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
    }

    .ai-button.ai-button-primary {
        background: linear-gradient(135deg, #2eb969 0%, #14284a 100%);
        animation: aiGlow 3s ease-in-out infinite;
    }

        .ai-button.ai-button-primary:hover {
            background: linear-gradient(135deg, #2eb969 0%, #14284a 60%);
            transform: translateY(-2px);
        }

    .ai-button.ai-button-secondary {
        background: #fff;
        color: #0f172a;
        border: none;
    }

        .ai-button.ai-button-secondary:hover {
            background: #f8fafc;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

    .ai-button.ai-button-danger {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        border-color: #ef4444;
    }

        .ai-button.ai-button-danger:hover {
            background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
        }

.ai-card {
    background: rgba(30, 58, 138, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .ai-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--ai-accent), transparent);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .ai-card:hover {
        background: rgba(30, 58, 138, 0.15);
        border-color: rgba(59, 130, 246, 0.4);
        box-shadow: 0 16px 64px rgba(0, 212, 255, 0.1);
        transform: translateY(-4px);
    }

        .ai-card:hover::before {
            opacity: 1;
        }

.ai-input {
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .ai-input::placeholder {
        color: var(--text-muted);
    }

    .ai-input:focus {
        outline: none;
        border-color: var(--ai-accent);
        box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
        background: rgba(30, 58, 138, 0.15);
    }

    .ai-input:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

textarea.ai-input {
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

    textarea.ai-input:focus {
        box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1), 0 4px 20px rgba(0, 212, 255, 0.1);
    }

.ai-badge {
    background: linear-gradient(135deg, var(--ai-accent) 0%, var(--ai-glow) 100%);
    color: var(--norma-navy);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

/* Material Icons */
.material-symbols-outlined.filled {
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Utility Classes */
.hidden {
    display: none;
}

.flex {
    display: flex;
}

.h-screen-full {
    height: 100vh;
}

.w-screen-full {
    width: 100vw;
}

.flex-col {
    flex-direction: column;
}

/* ====================================
   Main App Layout
   ==================================== */
.norma-app {
    min-height: 100vh;
    background: linear-gradient(rgb(15, 23, 42), rgb(30, 41, 59), rgb(15, 23, 42));
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
}

    .norma-app > * {
        position: relative;
        z-index: 1;
    }

.norma-logo-container {
    text-align: center;
}

.norma-main-content {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    flex: 1;
}

@media (max-width: 768px) {
    .norma-main-content {
        flex-direction: column;
        gap: 16px;
        max-width: 100%;
    }
}

/* Sidebar */
.norma-suggested-actions-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #232c40;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px;
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    position: sticky;
    top: 20px;
    scrollbar-width: thin;
    scrollbar-color: #2eb969 rgba(255, 255, 255, 0.1);
}

    .norma-suggested-actions-sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .norma-suggested-actions-sidebar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }

    .norma-suggested-actions-sidebar::-webkit-scrollbar-thumb {
        background: #2eb969;
        border-radius: 2px;
    }

        .norma-suggested-actions-sidebar::-webkit-scrollbar-thumb:hover {
            background: #2eb969;
        }

@media (max-width: 768px) {
    .norma-suggested-actions-sidebar {
        width: 100%;
        max-width: 100%;
        position: static;
        max-height: none;
        order: 2;
    }
}

/* Chat Container */
.norma-chat-container {
    flex: 1;
    width: 100%;
    height: calc(100vh - 120px);
    min-height: 500px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    background: #232c40;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
}

    .norma-chat-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
        pointer-events: none;
        z-index: 1;
    }

    .norma-chat-container > * {
        position: relative;
        z-index: 2;
    }

@media (max-width: 1200px) {
    .norma-chat-container {
        max-width: 95%;
        height: calc(100vh - 100px);
    }
}

@media (max-width: 768px) {
    .norma-chat-container {
        max-width: 98%;
        height: calc(100vh - 80px);
        min-height: 400px;
        max-height: 600px;
        border-radius: 12px;
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    .norma-chat-container {
        max-width: 100%;
        height: calc(100vh - 60px);
        min-height: 350px;
        max-height: 500px;
        border-radius: 8px;
        margin: 0 4px;
    }
}

@media (max-width: 360px) {
    .norma-chat-container {
        height: calc(100vh - 40px);
        min-height: 300px;
        max-height: 450px;
        margin: 0 2px;
    }
}

/* ====================================
   Animations
   ==================================== */
@keyframes aiGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes aiParticleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

@keyframes aiGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpBounce {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   Loading Screen
   ==================================== */
.loading-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgb(15, 23, 42), rgb(30, 41, 59), rgb(15, 23, 42));
}

.loading-content {
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.loading-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.loading-text {
    color: #cbd5e1;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.loading-spinner {
    display: flex;
    justify-content: center;
}

.spinner-ring {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(46, 185, 105, 0.2);
    border-top-color: #2eb969;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ====================================
   Blazor Error UI
   ==================================== */
#blazor-error-ui {
    background: rgba(239, 68, 68, 0.9);
    bottom: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    display: none;
    left: 0;
    padding: 20px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: white;
    text-align: center;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    #blazor-error-ui .reload {
        color: white;
        margin-left: 10px;
    }

/* ====================================
   Reduced Motion Support
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    .streaming-console,
    .ai-button,
    .ai-card,
    .ai-input {
        animation: none;
        transition: none;
    }

        .ai-button::before,
        .ai-card::before {
            animation: none;
            transition: none;
        }

    .ai-badge {
        box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
    }
}

/* ====================================
   Mobile Touch Optimizations
   ==================================== */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }

    button,
    [role="button"],
    input,
    textarea {
        touch-action: manipulation;
    }

    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    * {
        touch-action: manipulation;
    }

    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }

    .App {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        width: 100%;
        overflow-x: hidden;
    }
}

/* ====================================
   Audio Pulse Styles
   ==================================== */
.audioPulse {
    display: flex;
    width: 24px;
    justify-content: space-evenly;
    align-items: center;
    transition: all 0.5s;
    height: 4px;
    transition: opacity 0.333s;
}

    .audioPulse > div {
        background-color: white !important;
        border-radius: 1000px;
        width: 4px;
        min-height: 4px;
        border-radius: 1000px;
        transition: height 0.1s;
    }

    .audioPulse.hover > div {
        animation: hover 1.4s infinite alternate ease-in-out;
    }

    .audioPulse.active {
        opacity: 1;
    }

        .audioPulse.active > div {
            background-color: var(--Neutral-80);
        }

@keyframes hover {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-3.5px);
    }
}

@keyframes pulse {
    from {
        scale: 1 1;
    }

    to {
        scale: 1.2 1.2;
    }
}

/* ====================================
   Recording Pips Styles
   ==================================== */
.recording-pips {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

    .recording-pips .pip {
        width: 4px;
        height: 16px;
        background: #ef4444;
        border-radius: 2px;
        animation: recordingPipsAnimation 0.8s ease-in-out infinite;
    }

        .recording-pips .pip:nth-child(1) {
            animation-delay: 0s;
        }

        .recording-pips .pip:nth-child(2) {
            animation-delay: 0.1s;
        }

        .recording-pips .pip:nth-child(3) {
            animation-delay: 0.2s;
        }

        .recording-pips .pip:nth-child(4) {
            animation-delay: 0.3s;
        }

        .recording-pips .pip:nth-child(5) {
            animation-delay: 0.4s;
        }

@keyframes recordingPipsAnimation {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.7;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* ====================================
   Processing Indicator Styles
   ==================================== */
.processing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    font-size: 13px;
    font-weight: 500;
}

    .processing-indicator .spinner {
        width: 16px;
        height: 16px;
        border: 2px solid rgba(59, 130, 246, 0.3);
        border-top-color: #3b82f6;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ====================================
   AI Interface Components
   ==================================== */
.ai-button {
    background: linear-gradient(135deg, #2eb969 0%, #14284a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 12px 24px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .ai-button::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .ai-button:hover {
        background: linear-gradient(135deg, #2eb969 20%, #14284a 80%);
        box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
        transform: translateY(-2px);
    }

        .ai-button:hover::before {
            left: 100%;
        }

    .ai-button:active {
        transform: translateY(0px);
        box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
    }

    .ai-button.ai-button-primary {
        background: linear-gradient(135deg, #2eb969 0%, #14284a 100%);
        animation: aiGlow 3s ease-in-out infinite;
    }

        .ai-button.ai-button-primary:hover {
            background: linear-gradient(135deg, #2eb969 0%, #14284a 60%);
            transform: translateY(-2px);
        }

    .ai-button.ai-button-secondary {
        background: #fff;
        color: #0f172a;
        border: none;
    }

        .ai-button.ai-button-secondary:hover {
            background: #f8fafc;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

    .ai-button.ai-button-danger {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        border-color: #ef4444;
    }

        .ai-button.ai-button-danger:hover {
            background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
        }

.ai-card {
    background: rgba(30, 58, 138, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .ai-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--ai-accent), transparent);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .ai-card:hover {
        background: rgba(30, 58, 138, 0.15);
        border-color: rgba(59, 130, 246, 0.4);
        box-shadow: 0 16px 64px rgba(0, 212, 255, 0.1);
        transform: translateY(-4px);
    }

        .ai-card:hover::before {
            opacity: 1;
        }

.ai-input {
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .ai-input::placeholder {
        color: var(--text-muted);
    }

    .ai-input:focus {
        outline: none;
        border-color: var(--ai-accent);
        box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
        background: rgba(30, 58, 138, 0.15);
    }

    .ai-input:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

textarea.ai-input {
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

    textarea.ai-input:focus {
        box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1), 0 4px 20px rgba(0, 212, 255, 0.1);
    }

.ai-badge {
    background: linear-gradient(135deg, var(--ai-accent) 0%, var(--ai-glow) 100%);
    color: var(--norma-navy);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

/* Material Icons */
.material-symbols-outlined.filled {
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Utility Classes */
.hidden {
    display: none;
}

.flex {
    display: flex;
}

.h-screen-full {
    height: 100vh;
}

.w-screen-full {
    width: 100vw;
}

.flex-col {
    flex-direction: column;
}

/* ====================================
   Main App Layout
   ==================================== */
.norma-app {
    min-height: 100vh;
    background: linear-gradient(rgb(15, 23, 42), rgb(30, 41, 59), rgb(15, 23, 42));
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
}

    .norma-app > * {
        position: relative;
        z-index: 1;
    }

.norma-logo-container {
    text-align: center;
}

.norma-main-content {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    flex: 1;
}

@media (max-width: 768px) {
    .norma-main-content {
        flex-direction: column;
        gap: 16px;
        max-width: 100%;
    }
}

/* Sidebar */
.norma-suggested-actions-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #232c40;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px;
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    position: sticky;
    top: 20px;
    scrollbar-width: thin;
    scrollbar-color: #2eb969 rgba(255, 255, 255, 0.1);
}

    .norma-suggested-actions-sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .norma-suggested-actions-sidebar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }

    .norma-suggested-actions-sidebar::-webkit-scrollbar-thumb {
        background: #2eb969;
        border-radius: 2px;
    }

        .norma-suggested-actions-sidebar::-webkit-scrollbar-thumb:hover {
            background: #2eb969;
        }

@media (max-width: 768px) {
    .norma-suggested-actions-sidebar {
        width: 100%;
        max-width: 100%;
        position: static;
        max-height: none;
        order: 2;
    }
}

/* Chat Container */
.norma-chat-container {
    flex: 1;
    width: 100%;
    height: calc(100vh - 120px);
    min-height: 500px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    background: #232c40;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
}

    .norma-chat-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
        pointer-events: none;
        z-index: 1;
    }

    .norma-chat-container > * {
        position: relative;
        z-index: 2;
    }

@media (max-width: 1200px) {
    .norma-chat-container {
        max-width: 95%;
        height: calc(100vh - 100px);
    }
}

@media (max-width: 768px) {
    .norma-chat-container {
        max-width: 98%;
        height: calc(100vh - 80px);
        min-height: 400px;
        max-height: 600px;
        border-radius: 12px;
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    .norma-chat-container {
        max-width: 100%;
        height: calc(100vh - 60px);
        min-height: 350px;
        max-height: 500px;
        border-radius: 8px;
        margin: 0 4px;
    }
}

@media (max-width: 360px) {
    .norma-chat-container {
        height: calc(100vh - 40px);
        min-height: 300px;
        max-height: 450px;
        margin: 0 2px;
    }
}

/* ====================================
   Animations
   ==================================== */
@keyframes aiGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes aiParticleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

@keyframes aiGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpBounce {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   Loading Screen
   ==================================== */
.loading-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgb(15, 23, 42), rgb(30, 41, 59), rgb(15, 23, 42));
}

.loading-content {
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.loading-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.loading-text {
    color: #cbd5e1;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.loading-spinner {
    display: flex;
    justify-content: center;
}

.spinner-ring {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(46, 185, 105, 0.2);
    border-top-color: #2eb969;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ====================================
   Blazor Error UI
   ==================================== */
#blazor-error-ui {
    background: rgba(239, 68, 68, 0.9);
    bottom: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    display: none;
    left: 0;
    padding: 20px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: white;
    text-align: center;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    #blazor-error-ui .reload {
        color: white;
        margin-left: 10px;
    }

/* ====================================
   Reduced Motion Support
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    .streaming-console,
    .ai-button,
    .ai-card,
    .ai-input {
        animation: none;
        transition: none;
    }

        .ai-button::before,
        .ai-card::before {
            animation: none;
            transition: none;
        }

    .ai-badge {
        box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
    }
}

