body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    overflow-x: hidden;
}

/* Animated Mesh Gradient Background */
.animated-mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(45deg,
    #A5B4FC, #C4B5FD, #D8B4FE, #93C5FD,
    #60A5FA, #C084FC, #67E8F9, #38BDF8,
    #818CF8, #A78BFA, #A855F7, #6366F1);
    background-size: 400% 400%;
    animation: meshGradientShift 12s ease-in-out infinite;
}

.animated-mesh-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%,
    rgba(165, 180, 252, 0.8) 0%,
    transparent 50%),
    radial-gradient(circle at 80% 20%,
            rgba(196, 181, 253, 0.8) 0%,
            transparent 50%),
    radial-gradient(circle at 40% 40%,
            rgba(216, 180, 254, 0.6) 0%,
            transparent 50%);
    animation: meshOverlayShift 15s ease-in-out infinite;
}

.animated-mesh-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(ellipse at 70% 70%,
            rgba(147, 197, 253, 0.7) 0%,
            transparent 60%),
            radial-gradient(ellipse at 30% 20%,
            rgba(96, 165, 250, 0.6) 0%,
            transparent 60%),
            radial-gradient(ellipse at 60% 90%,
            rgba(192, 132, 252, 0.5) 0%,
            transparent 70%);
    animation: meshOverlayShift 18s ease-in-out infinite reverse;
}

@keyframes meshGradientShift {

    0%,
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg) brightness(1);
    }

    25% {
        background-position: 100% 50%;
        filter: hue-rotate(10deg) brightness(1.1);
    }

    50% {
        background-position: 100% 100%;
        filter: hue-rotate(-5deg) brightness(0.95);
    }

    75% {
        background-position: 0% 100%;
        filter: hue-rotate(15deg) brightness(1.05);
    }
}

@keyframes meshOverlayShift {

    0%,
    100% {
        transform: translateX(0%) translateY(0%) rotate(0deg) scale(1);
        opacity: 0.8;
    }

    25% {
        transform: translateX(-5%) translateY(5%) rotate(2deg) scale(1.05);
        opacity: 0.9;
    }

    50% {
        transform: translateX(3%) translateY(-3%) rotate(-1deg) scale(0.95);
        opacity: 0.7;
    }

    75% {
        transform: translateX(2%) translateY(4%) rotate(1.5deg) scale(1.02);
        opacity: 0.85;
    }
}

.main-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    padding: 2rem;
    text-align: center;
    box-sizing: border-box;
}

.content-top {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.content-bottom {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    min-height: 0;
    margin-top: 2rem;
}

.greeting {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 400;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.date-display {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mic-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: auto auto 2rem auto;
    border: 3px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.mic-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.mic-button:active {
    transform: scale(0.95);
}

.mic-button.recording {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.mic-button.playing {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    animation: playingPulse 2s ease-in-out infinite alternate;
}

.mic-button.processing {
    background: linear-gradient(135deg, #667eea, #764ba2);
    animation: processingPulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.7);
    }

    to {
        box-shadow: 0 0 0 20px rgba(255, 65, 108, 0);
    }
}

@keyframes playingPulse {
    from {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
        transform: scale(1);
    }

    to {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
        transform: scale(1.05);
    }
}

@keyframes processingPulse {
    from {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
        transform: scale(1);
    }

    to {
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
        transform: scale(1.02);
    }
}

/* Processing dots animation */
.processing-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.processing-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    animation: processingDots 1.4s ease-in-out infinite both;
}

.processing-dots .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.processing-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
}

.processing-dots .dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes processingDots {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.mic-icon {
    width: 60px;
    height: 60px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.account-icon {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.account-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.account-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.connection-section {
    text-align: center;
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
}

.connection-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.connection-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.connect-button {
    background: white;
    color: #333;
    border: 2px solid #ddd;
    padding: 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    text-align: center;
}

.connect-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #bbb;
}

.connect-button.google {
    border-color: #4285F4;
}

.connect-button.google:hover {
    border-color: #3367D6;
    background: #f8f9ff;
}

.connect-button.microsoft {
    border-color: #00BCF2;
}

.connect-button.microsoft:hover {
    border-color: #0078D4;
    background: #f0f8ff;
}

.connect-button.public {
    border-color: #4CAF50;
}

.connect-button.public:hover {
    border-color: #45a049;
    background: #f8fff8;
}

.button-subtitle {
    font-size: 12px;
    color: #666;
    font-weight: 400;
    margin-top: 4px;
}

.account-management {
    text-align: center;
    margin-top: 2rem;
}

.management-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.auth-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.auth-button.danger {
    background: linear-gradient(135deg, #FF6B6B, #FF4B2B);
}

.auth-button.danger:hover {
    background: linear-gradient(135deg, #FF5252, #FF3D00);
}

.hidden {
    display: none !important;
}


.status {
    margin-top: 1rem;
    padding: 12px 24px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    min-height: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}



.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Confirmation Modal Styles */
.confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.confirmation-modal.show {
    display: flex;
}

.confirmation-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: #333;
}

.confirmation-content h2 {
    color: #667eea;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.confirmation-details {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.confirmation-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.confirmation-button {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.cancel-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}
