:root {
    --primary: #5E98F1;
    --primary-dark: #4a7ac1;
    --primary-light: #EEF4FE;
    --text: #1f2937;
    --light: #f3f4f6;
    --accent: #FFB84D;
}

.demo-body {
    background: linear-gradient(150deg, #ffffff 0%, #EEF4FE 100%);
    min-height: 100vh;
}

.demo-nav {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 2rem;
    box-shadow: 0 2px 15px rgba(94, 152, 241, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 0;
}

.demo-header {
    text-align: center;
    padding: 3rem 1rem 4rem;
    background: linear-gradient(180deg, rgba(238, 244, 254, 0) 0%, rgba(238, 244, 254, 0.8) 100%);
    position: relative;
}

.demo-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent, rgba(238, 244, 254, 0.5));
    pointer-events: none;
}

.demo-header h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.demo-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.email-thread {
    max-width: 800px;
    margin: -50px auto 4rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(94, 152, 241, 0.1);
    padding: 30px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(94, 152, 241, 0.1);
}

.email-header {
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.email-subject {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-subject::before {
    content: '📧';
    font-size: 1.2rem;
}

.email-message {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--primary-light);
    border-radius: 12px;
    border: 1px solid rgba(94, 152, 241, 0.1);
    transition: transform 0.2s ease;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.email-message:hover {
    transform: translateY(-2px);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--primary-dark);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(94, 152, 241, 0.2);
}

.message-content {
    line-height: 1.7;
    color: var(--text);
}

.compose-email {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--primary-light);
}

.compose-email h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compose-email h3::before {
    content: '✏️';
    font-size: 1.2rem;
}

.compose-email textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid rgba(94, 152, 241, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.compose-email textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(94, 152, 241, 0.1);
}

.compose-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.send-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.send-button::after {
    content: '↗️';
    font-size: 1.1rem;
}

.send-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.dictation-overlay {
    position: fixed;
    top: 50%;
    right: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(94, 152, 241, 0.2);
    padding: 15px;
    cursor: move;
    user-select: none;
    z-index: 1000;
    border: 1px solid rgba(94, 152, 241, 0.1);
    backdrop-filter: blur(10px);
}

.handle {
    text-align: center;
    color: var(--primary);
    margin-bottom: 8px;
    cursor: move;
    opacity: 0.5;
}

.record-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 280px;
}

.record-button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(94, 152, 241, 0.2);
}

.mic-icon {
    font-size: 1.2rem;
}

.button-text {
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Add subtle animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.email-message {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.email-message:nth-child(1) { animation-delay: 0.1s; }
.email-message:nth-child(2) { animation-delay: 0.2s; }
.email-message:nth-child(3) { animation-delay: 0.3s; }

.record-button.recording {
    animation: pulse-record 2s infinite;
}

@keyframes pulse-record {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

.record-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Add loading spinner for processing state */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.record-button .mic-icon {
    display: inline-block;
}

.record-button[disabled] .mic-icon {
    animation: spin 2s linear infinite;
}

.rating-container {
    display: none; /* Initially hidden */
    background: var(--primary-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

.rating-container.visible {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rating-text {
    color: var(--text);
    font-size: 0.95rem;
}

.rating-buttons {
    display: flex;
    gap: 15px;
}

.rating-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-btn:hover {
    transform: scale(1.1);
}

.rating-btn.good {
    color: #2aca3e;
}

.rating-btn.neutral {
    color: #fec02f;
}

.rating-btn.bad {
    color: #fc6058;
}

.rating-thanks {
    display: none;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.rating-thanks.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Update the processing-status styles */
.processing-status {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(94, 152, 241, 0.25);
    border: 1px solid rgba(94, 152, 241, 0.1);
    max-width: 400px;
    width: 90%;
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2000;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.4;
}

.processing-status.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.processing-status::before {
    content: '✨';
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

/* Remove the backdrop blur from overlay */
.processing-overlay {
    display: none; /* Remove the overlay completely */
}

.processing-overlay.visible {
    display: none;
} 