/* Base styles */
.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Login page styles */
.login-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* Header styles */
.app-header {
    padding: 1rem 0;
    text-align: center;
    flex-shrink: 0;
}

.app-header h1 {
    font-size: 1.875rem;
    margin-bottom: 0.25rem;
}

.app-header p {
    font-size: 0.875rem;
}

/* User info styles */
.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

#logoutBtn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: #dc2626;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

#logoutBtn:hover {
    background-color: #fee2e2;
}

.app-main {
    flex: 1;
    min-height: 0;
    position: relative;
    margin-bottom: 0.5rem;
}

.main-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    background-opacity: 0.9;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.conversation-container {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    margin: 0.25rem 0;
    min-height: 0;
}

.control-section {
    padding: 0.75rem 0 0;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.app-footer {
    padding: 0.5rem 0;
    text-align: center;
    flex-shrink: 0;
}

/* Status section */
.text-center.mb-4 {
    margin-bottom: 0.75rem;
}

#status {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Message styles */
.message {
    padding: 0.75rem;
    margin: 0.375rem 0;
    border-radius: 0.75rem;
    animation: fadeIn 0.3s ease-in;
    line-height: 1.5;
    font-size: 0.9375rem;
}

.user-message {
    background-color: #ebf5ff;
    margin-left: 1.5rem;
    margin-right: 0.75rem;
    border: 1px solid #cce3ff;
}

.assistant-message {
    background-color: #f8f9fa;
    margin-right: 1.5rem;
    margin-left: 0.75rem;
    border: 1px solid #e9ecef;
}

.transcribed-message {
    background-color: #f0fdf4;
    margin-left: 1.5rem;
    margin-right: 0.75rem;
    border: 1px solid #dcfce7;
    font-size: 0.875rem;
}

.transcribed-message .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transcribed-message .rounded-full {
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

.transcribed-message .bg-orange-100 {
    background-color: #ffedd5;
    border: 1px solid #fed7aa;
}

.transcribed-message .bg-blue-100 {
    background-color: #dbeafe;
    border: 1px solid #bfdbfe;
}

.transcribed-message .text-orange-700 {
    color: #c2410c;
}

.transcribed-message .text-blue-700 {
    color: #1d4ed8;
}

.error-message {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
    margin: 1rem 2rem;
    text-align: center;
}

/* Record button styles */
.record-button {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #4f46e5, #4338ca);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.record-button.disabled {
    background: linear-gradient(145deg, #9ca3af, #6b7280);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7;
}

.record-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

.record-button.disabled svg {
    opacity: 0.7;
}

.record-button svg {
    width: 1.75rem;
    height: 1.75rem;
}

.record-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15), 0 3px 6px -1px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #4338ca, #3730a3);
}

.record-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
}

.record-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.record-button:hover::before {
    opacity: 1;
}

/* Recording indicator */
.recording-dot {
    width: 12px;
    height: 12px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* Conversation container scrollbar */
.conversation-container::-webkit-scrollbar {
    width: 6px;
}

.conversation-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.conversation-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.conversation-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Status transitions */
#status {
    transition: color 0.3s ease;
}

/* Recording state */
.recording .record-button {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    animation: recording-pulse 2s infinite;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
    .app-container {
        padding: 0 0.5rem;
    }

    .app-header {
        padding: 1rem 0;
    }

    .main-card {
        padding: 1rem;
    }

    .message {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 0.75rem;
    }
    
    .record-button {
        width: 3.5rem;
        height: 3.5rem;
    }
} 