:root {
    --primary-color: #A8516E;
    --secondary-color: #AA6F73;
    --background-color: #F3E9E3;
    --text-color: #2D232E;
    --error-color: #CB4042;
    --accent-color: #61988E;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: linear-gradient(45deg, #ffffff20 25%, transparent 25%),
                     linear-gradient(-45deg, #ffffff20 25%, transparent 25%);
    background-size: 60px 60px;
    padding: 2rem;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 15px;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    font-family: "Helvetica Neue", sans-serif;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--primary-color);
}

button {
    background-color: var(--accent-color);
    color: #ffffff;
    border: 2px solid transparent;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

button:disabled {
    background-color: #dddddd;
    cursor: not-allowed;
}

.transcript-container {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    height: 400px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
    overflow-y: auto;
    scroll-behavior: smooth;
}

.transcript {
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--text-color);
}

.status {
    display: none;
}

.error {
    color: var(--error-color);
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    display: none;
    font-weight: bold;
}

.controls {
    text-align: center;
    margin-bottom: 2rem;
}

/* New styles for transcript animation */
.transcript p {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.5s ease forwards;
}

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

/* Add styles for the AI responses */
.transcript p strong {
    font-weight: 600;
}

/* Style for AI messages */
.transcript p[data-ai="true"] strong {
    color: var(--accent-color);
}

/* Style for user messages */
.transcript p:not([data-ai="true"]) {
    color: #666666;  /* Dark grey for user transcript text */
}

.transcript p:not([data-ai="true"]) strong {
    color: var(--primary-color);
}

.transcript p[data-ai="true"] {
    padding-left: 20px;
    border-left: 3px solid var(--accent-color);
    margin: 1em 0;
}

.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin: 20px auto;
    box-sizing: border-box;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.saved-conversation-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    margin: 5px 0;
    background-color: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.saved-conversation-item:hover {
    background-color: #e0e0e0;
}

.conversation-preview {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

.conversation-content {
    flex-grow: 1;
    cursor: pointer;
}

.delete-conversation {
    float: right;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    border: none;
    background-color: rgba(203, 64, 66, 0.15);
    border-radius: 4px;
    font-size: 1.2em;
    transition: all 0.2s;
}

.delete-conversation:hover {
    transform: scale(1.1);
    background-color: rgba(203, 64, 66, 0.3);
}

.bottom-controls {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.2rem;
}

.secondary-button {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    height: 28px;
    line-height: 1;
    box-sizing: border-box;
}

/* Update status style to fit between buttons */
.status {
    display: none;
}

/* Add these media queries to your styles.css */
@media screen and (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  button {
    min-height: 44px;
    min-width: 44px;
    margin: 0.5rem;
  }

  .modal-content {
    width: 90%;
    margin: 10px auto;
    padding: 15px;
    max-width: none;
  }

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

  .status {
    order: -1;  /* Show status above buttons */
    margin: 0.5rem 0;
  }

  .bottom-controls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  .secondary-button {
    width: auto;
    min-width: 100px;
    max-width: 140px;
    padding: 0.35rem 0.8rem;
    height: 28px;
  }

  .language-select {
    width: 100%;
    margin: 0.5rem 0;
    padding: 0.8rem;
  }

  .control-button {
    width: auto;
    min-width: 120px;
  }
} 

#savedConversationsList {
    max-height: 60vh;
    overflow-y: auto;
} 

.language-select {
    margin-top: 1rem;
    padding: 0.5rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    background-color: transparent;
    color: var(--text-color);
    font-size: 0.9rem;
    width: auto;
    cursor: pointer;
    transition: all 0.2s;
}

.language-select:hover {
    border-color: var(--primary-color);
}

.language-select option {
    background-color: white;
    color: var(--text-color);
} 

.top-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 100;
}

.gear-icon {
    font-size: 0.8em;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s;
    padding: 0.3rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 4px;
}

.gear-icon:hover {
    opacity: 1;
    transform: rotate(45deg);
} 

.settings-group {
    margin: 1rem 0;
    box-sizing: border-box;
}

.settings-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.settings-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    margin-bottom: 1rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.settings-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(168, 81, 110, 0.1);
}

#saveSettings {
    width: 100%;
    margin-top: 1rem;
} 

.model-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    margin-bottom: 1rem;
    font-family: inherit;
    background-color: white;
    cursor: pointer;
}

.model-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(168, 81, 110, 0.1);
} 

#googleSignIn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 1rem 0;
    padding: 1rem;
    background-color: white;
    color: #757575;
    border: 1px solid #ddd;
}

#googleSignIn:hover {
    background-color: #f5f5f5;
    color: #000;
} 

#authForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

#authForm input {
    padding: 0.8rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-size: 1rem;
}

#authForm button {
    margin-top: 0.5rem;
}

#switchAuthMode {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
} 

.header-controls {
    position: fixed;
    bottom: 0.3rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 100;
    line-height: 1;
    height: min-content;
}

.subtle-button {
    font-size: 0.7em;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
    box-shadow: none;
    text-transform: lowercase;
    line-height: 1;
    height: auto;
    min-height: 0;
}

.subtle-button:hover {
    opacity: 1;
    color: var(--text-color);
    transform: none;
} 

/* New combined control button styles */
.control-button {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: #ffffff;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.control-button .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333; /* Default black */
    transition: all 0.3s ease;
}

.control-button.initializing .status-dot {
    background: #FFA500; /* Orange */
    box-shadow: 0 0 5px #FFA500;
}

.control-button.connected .status-dot {
    background: #4CAF50; /* Green */
    box-shadow: 0 0 5px #4CAF50;
}

.control-button.error .status-dot {
    background: var(--error-color);
    box-shadow: 0 0 5px var(--error-color);
}

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