/* Import Inter variable font */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Base styles */
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400; /* Default weight */
    font-style: normal;
    margin: 0;
    padding: 0;
    color: #122835;
    background-color: white;
    overflow-x: hidden;
}

/* Set iPad Air 4th gen landscape dimensions */
html, body {
    width: 100%;
    height: 100%;
}

title{
    font-size: 60px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 50px;
    background-color: #2A65AF;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
    z-index: 100;
}

.time {
    font-size: 18px;
    font-weight: 600;
}

.navbar-buttons {
    display: flex;
    gap: 8px;
}

/* Main content */
.main-content {
    padding: 0;
    height: calc(100% - 50px);
    overflow-y: auto;
}

/* Card container styling */
.container {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Record and stop buttons (circular) */
.record-btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e0e0e0;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 10px;
}

.stop-btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #888;
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 10px;
}

.record-btn-circle.recording {
    background-color: #ff3b30;
    animation: pulse 1.5s infinite;
}

.stop-btn-circle:disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

@keyframes pulse {
    0% { background-color: #ff3b30; }
    50% { background-color: #ff6b62; }
    100% { background-color: #ff3b30; }
}

/* Emoji container */
.emoji-container {
    text-align: center;
    padding: 30px 20px;
    margin-top: 100px;
}

#emoji-display {
    font-size: 152px;
    line-height: 1;
    margin: 80px 0;
    height: 152px;
}

#welcome-message {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0;
}

/* Toggle Fold Button */
.toggle-fold-btn {
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #2A65AF;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-fold-btn:hover {
    background-color: #1D4F8C;
}

.toggle-fold-btn:active {
    transform: translateY(1px);
}

/* Loading state */
.loading-indicator {
    width: 24px;
    height: 24px;
    background-color: #122835;
    border-radius: 50%;
    margin: 0 auto;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Analysis content */
.analysis-content {
    padding: 0 0 50px 0;
    font-size: 36px;
    line-height: 1.4;
    color: #122835;
}

/* Below fold content */
.below-fold {
    padding-top: 20px;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

/* Timer section */
.timer-container {
    text-align: center;
}

#timer {
    font-size: 24px;
    font-weight: 600;
    margin: 10px 0;
}

#status {
    font-size: 16px;
    color: #122835;
    margin: 10px 0;
}

/* Section headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    margin: 0;
    color: #122835;
    font-size: 20px;
    font-weight: 600;
}

/* Transcription */
#transcription {
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f8f8;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

.segment {
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 8px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.speaker-0 {
    background-color: #e3f2fd;
}

.speaker-1 {
    background-color: #f1f8e9;
}

.segment-header {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

/* Console content */
.console-content {
    padding: 15px;
    border-radius: 8px;
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-family: monospace;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

/* Helper classes */
.hidden {
    display: none !important;
}

/* Attention arrow styling */
.attention-arrow {
    display: inline-block;
    color: #2A65AF;
    font-weight: bold;
    font-size: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Blinking animation for the arrow */
@keyframes blink-arrow {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.blink-arrow {
    animation: blink-arrow 0.5s 3;  /* Blink 3 times */
}

/* Add these styles to your styles.css file */

/* Message highlight animation */
@keyframes highlight-message {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.highlight-new-message {
    animation: highlight-message 0.7s 2;  /* Blink twice with a slower speed */
}