/* General Styles */
:root {
    --primary-color: #2196F3;
    --primary-dark: #0b7dda;
    --secondary-color: #4CAF50;
    --secondary-dark: #45a049;
    --danger-color: #f44336;
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #999;
    --border-color: #ddd;
    --background-color: #f4f4f4;
    --card-background: white;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
    --content-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Layout */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header-wrapper {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-large {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-email {
    color: var(--light-text);
    font-size: 14px;
}

.logout-btn {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    width: auto;
    margin: 0;
}

.logout-btn:hover {
    background-color: #d32f2f;
}

/* Page Styles */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Auth Page */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.auth-container h1 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.login-form {
    text-align: left;
}

input, button {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

button:hover {
    background-color: var(--secondary-dark);
}

.page-title {
    margin-bottom: 15px;
    color: var(--text-color);
}

.welcome-message {
    margin-bottom: 30px;
    color: var(--light-text);
}

/* New styles for header */
.header {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    overflow: hidden;
}

.user-email {
    float: left;
    padding: 10px 0;
    font-weight: bold;
    color: #333;
}

.clear {
    clear: both;
}

/* Audio upload section styles */
.audio-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.file-input {
    display: block;
    margin-bottom: 10px;
    width: 100%;
}

.upload-btn {
    display: block;
    width: auto;
    margin-bottom: 20px;
}

#audio-player-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

#audio-player {
    width: 100%;
    margin: 10px 0;
}

#send-audio-btn {
    display: block;
    background-color: #2196F3;
    width: auto;
}

#send-audio-btn:hover {
    background-color: #0b7dda;
}

#upload-status {
    margin-top: 10px;
    padding: 10px;
    display: none;
}

.status-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block !important;
}

.status-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block !important;
}

.hidden {
    display: none;
}

/* Response container styles */
#response-container {
    margin-top: 30px;
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.response-tabs {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    background-color: transparent;
    border: none;
    padding: 10px 20px;
    margin-right: 5px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    background-color: #f9f9f9;
}

.tab-btn.active {
    color: #2196F3;
    border-bottom: 2px solid #2196F3;
    font-weight: bold;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Transcript styles */
.transcript-content {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 15px;
    line-height: 1.6;
}

.transcript-line {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

/* Analysis styles */
.analysis-content {
    max-height: 400px;
    overflow-y: auto;
}

.analysis-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.analysis-section h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

#positive-aspects li {
    color: #2e7d32;
    margin-bottom: 5px;
}

#negative-aspects li {
    color: #c62828;
    margin-bottom: 5px;
}

#call-outcome {
    font-weight: bold;
}

/* Utility Classes */
.hidden {
    display: none;
}

.clear {
    clear: both;
}

/* Audio controls */
.audio-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.audio-controls button {
    flex: 1;
    margin: 0;
}

.remove-btn {
    background-color: #f44336;
    color: white;
}

.remove-btn:hover {
    background-color: #d32f2f;
}
