/* Custom styles for ElyAI */

/* General styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Card styles */
.card {
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

/* Feature cards */
.feature-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card .card-body {
    padding: 2rem;
}

/* Navigation */
.navbar {
    box-shadow: none;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 2rem 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Buttons */
.btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@font-face {
    font-family: 'Mona Sans';
    src: url('../assets/fonts/Mona-Sans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Mona Sans';
    src: url('../assets/fonts/Mona-Sans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Source Serif 4';
    src: url('../assets/fonts/SourceSerif4_48pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Source Serif 4';
    src: url('../assets/fonts/SourceSerif4_48pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: bold;
}

#elyTranscription, #elyIntroTranscription {
    font-family: 'Source Serif 4', serif;
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0 auto;
    max-width: 700px;
}

.ely-transcription-line {
    font-family: 'Source Serif 4', serif;
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0 auto;
    max-width: 700px;
    text-align: center;
    line-height: 1.4;
}

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

#elyIntroTranscription {
    font-family: 'Source Serif 4', serif;
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0 auto;
    max-width: 700px;
    text-align: center;
    line-height: 1.4;
}

/* Memory and biography text styling */
.memory-paragraph, .memory-text, .biography-memories, .biography-content, .memory-entry {
    font-family: 'Source Serif 4', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
}

/* Button styles for Pause and End Conversation */
#pauseConversationBtn, #pauseBtn, #endConversationBtn {
    font-family: 'Mona Sans', Arial, sans-serif;
    font-size: 1.25rem;
    border: none;
    border-radius: 2rem;
    padding: 0.8rem 2.2rem;
    margin: 0 0.5rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
#pauseConversationBtn, #pauseBtn {
    background: #f36ca0;
    color: #fff;
}
#pauseConversationBtn:hover, #pauseBtn:hover {
    background: #e0558a;
}
#endConversationBtn {
    background: #e0e0e0;
    color: #555;
}
#endConversationBtn:hover {
    background: #bdbdbd;
}

/* Center the buttons at the bottom */
.ely-btn-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: transparent;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
}

/* --- View All Memories button at bottom of left panel --- */
#viewByTopicBtn {
    position: absolute;
    left: 0;
    bottom: 24px;
    width: calc(100% - 48px);
    margin: 0 24px;
    padding: 16px 0;
    background: #e9e9e9;
    color: #333;
    border: none;
    border-radius: 12px;
    font-size: 1.15em;
    font-family: 'Mona Sans', Arial, sans-serif;
    font-weight: 600;
    box-shadow: 0 2px 8px #0001;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}
#viewByTopicBtn:hover {
    background: #d1d1d1;
}

/* --- Button row below transcript on right --- */
#elyButtonRow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 2.5em;
    margin-bottom: 1.5em;
}
#pauseConversationBtn, #stopConversationBtn, #endConversationBtn {
    min-width: 140px;
    padding: 16px 0;
    border-radius: 24px;
    font-size: 1.15em;
    font-family: 'Mona Sans', Arial, sans-serif;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 8px #0001;
    cursor: pointer;
    transition: background 0.2s;
}
#pauseConversationBtn {
    background: #f25c96;
    color: #fff;
}
#pauseConversationBtn:hover {
    background: #e04b7c;
}
#endConversationBtn, #stopConversationBtn {
    background: #bdbdbd;
    color: #fff;
}
#endConversationBtn:hover, #stopConversationBtn:hover {
    background: #a0a0a0;
}

/* Memory paragraph styling */
.memory-paragraph {
    font-family: 'Source Serif 4', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #EA508C;
}

/* Memory box wrapper */
#memoryBoxWrapper {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* Settings styles */
.settings-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.settings-tab-content {
    padding: 2rem 0;
}

.settings-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.settings-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.settings-tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.settings-tab-btn.active {
    color: #EA508C;
    border-bottom-color: #EA508C;
}

.settings-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.settings-section h3 {
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.settings-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.settings-section input,
.settings-section select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.settings-save-btn {
    background: #EA508C;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.settings-save-btn:hover {
    background: #d13e7a;
}

.settings-family-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.settings-family-list {
    list-style: none;
    padding: 0;
}

.settings-family-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
}

.settings-family-empty {
    text-align: center;
    color: #666;
    padding: 2rem;
}

.settings-invite-btn {
    background: #EA508C;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.settings-invite-btn:hover {
    background: #d13e7a;
}

.settings-invite-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.settings-invite-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
}

.settings-invite-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.settings-invite-modal-content h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.settings-invite-modal-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.settings-invite-modal-content input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.settings-invite-modal-content button[type="submit"] {
    background: #EA508C;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.settings-invite-modal-content button[type="submit"]:hover {
    background: #d13e7a;
}

/* ===== REUSABLE FORM STYLES ===== */
/* Name input field styling - matches set_name.html */
.name-input {
    padding: 12px 20px;
    font-size: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    font-family: 'Mona Sans', Arial, sans-serif;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 500px;
    height: 48px;
}

.name-input:focus {
    outline: none;
    border-color: #EA508C;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(234, 80, 140, 0.1);
}

.name-input::placeholder {
    color: #999;
    font-size: 0.9rem;
}

/* Form button styling - matches set_name.html */
.cta-btn, .centered-form form button[type="submit"] {
    background-color: #EA508C !important;
    color: white !important;
    border: none !important;
    padding: 14px 32px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-family: 'Mona Sans', Arial, sans-serif !important;
    font-weight: 600 !important;
    width: 100% !important;
    max-width: 500px !important;
    margin-top: 1rem !important;
    transition: all 0.2s ease !important;
    height: 48px !important;
    box-sizing: border-box !important;
    display: block !important;
}

.cta-btn:hover {
    background-color: #d13e7a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 80, 140, 0.3);
}

.cta-btn:active {
    transform: translateY(0);
}

/* Form layout and typography */
.centered-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

.centered-form form {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    width: 100%;
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Mona Sans', Arial, sans-serif;
    color: #333;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Mona Sans', Arial, sans-serif;
    color: #333;
    line-height: 1.2;
}

.form-subtitle {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Mona Sans', Arial, sans-serif;
}

