:root {
    --g-blue: #1a73e8;
    --g-red: #d93025;
    --g-yellow: #f4b400;
    --g-green: #0f9d58;
    --primary-text: #3c4043;
    --secondary-text: #5f6368;
    --bg-color: #f8f9fa;
    --border-color: #dadce0;
    --surface-color: #ffffff;
    --nav-rail-width: 280px;
}

body {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-text);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    width: 100%;
    background-color: #ffffff;
    color: var(--primary-text);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.1);
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 500;
    color: var(--secondary-text);
}

.logo .space {
    color: var(--primary-text);
}

header h1 {
    font-size: 20px;
    font-weight: 500;
    color: var(--secondary-text);
    margin: 0;
}

/* Material Symbols Outlined */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Global Search Bar */
.global-search-container {
    flex-grow: 1;
    max-width: 720px;
    background: #f1f3f4;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    margin: 0 24px;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    height: 40px;
}
.global-search-container:focus-within {
    background: white;
    border-color: var(--g-blue);
    box-shadow: 0 1px 2px rgba(60,64,67,0.1);
}
.global-search-input {
    background: transparent;
    border: none;
    padding: 8px;
    flex-grow: 1;
    outline: none;
    font-size: 15px;
    color: var(--primary-text);
}
.search-icon {
    color: var(--secondary-text);
    padding: 8px;
}
.search-hotkey {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary-text);
    margin-right: 8px;
}

/* Header Icons */
.header-icon {
    color: var(--secondary-text);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-icon:hover {
    background: #f1f3f4;
}

.header-right-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-link-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--g-blue);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 4px;
    transition: background-color 0.2s;
    border: 1px solid var(--border-color);
    background-color: white;
}

.admin-link-btn:hover, .admin-link-btn.active {
    background-color: #f8f9fa;
    color: #174ea6;
    border-color: #dadce0;
}


.branding {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    color: var(--secondary-text);
}

#save-session-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000; /* Ensure it's above other content */
    background-color: var(--g-blue);
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: none;
    padding: 12px 24px;
}

#save-session-btn:hover {
    background-color: #1a73e8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.company-title-header {
    padding: 12px 32px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--surface-color);
}

.company-title-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}

.gcp-logo {
    height: 24px;
}

.prefill-toggle-container label {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-text);
    cursor: pointer;
}

/* The switch - a box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--g-blue);
}

input:focus + .slider {
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 20px;
}

.slider.round:before {
  border-radius: 50%;
}

.page-container {
    display: flex;
    width: 100%;
    max-width: 1700px;
    margin: 32px auto;
    padding: 0 32px;
    gap: 8px; /* Reduced from 32px */
    align-items: flex-start;
    box-sizing: border-box;
}

main {
    width: 100%;
    flex-grow: 1;
    margin: 0;
    padding: 24px;
    background-color: var(--surface-color);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: none;
    box-sizing: border-box;
}

.resume-session-container {
    width: 100%;
    max-width: 1200px;
    margin: 24px auto -8px;
    padding: 16px 32px;
    box-sizing: border-box;
    background-color: #e8f0fe;
    border: 1px solid #d2e3fc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    position: relative; /* For typeahead positioning */
    gap: 16px;
}

.resume-session-container label {
    font-weight: 500;
    color: var(--primary-text);
}

.resume-session-container input[type="text"] {
    flex-grow: 1;
    padding: 8px 12px;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
.resume-session-container input[type="text"]:focus {
    outline: none;
    border-color: var(--g-blue);
    box-shadow: inset 0 0 0 1px var(--g-blue);
}

.section-title {
    font-size: 20px;
    font-weight: 500;
    margin-top: 32px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

#demo-config-form h3 {
    font-size: 16px;
    font-weight: 500;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--secondary-text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:disabled,
.exec-problems textarea:disabled,
.exec-problems input:disabled {
    background-color: #f1f3f4; /* A light grey to indicate disabled state */
    cursor: not-allowed;
    color: var(--secondary-text);
    border-color: var(--border-color);
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--g-blue);
    box-shadow: inset 0 0 0 1px var(--g-blue);
}

.form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: var(--surface-color);
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--secondary-text);
}

#executives-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.add-exec-form-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.add-exec-photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 120px;
    flex-shrink: 0;
}

.add-exec-photo-preview-wrapper {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    position: relative;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.add-exec-photo-preview-wrapper svg {
    width: 60px;
    height: 60px;
    color: var(--secondary-text);
    opacity: 0.5;
}

#exec-photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--g-blue);
    cursor: pointer;
    text-align: center;
}

.add-exec-inputs {
    flex-grow: 1;
}

.typeahead-container {
    position: relative;
}

.resume-session-container .typeahead-container {
    flex-grow: 1;
}

.typeahead-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.typeahead-list div {
    padding: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.typeahead-list div:hover,
.typeahead-list div.highlighted {
    background-color: #e8f0fe;
}
.typeahead-list .session-date {
    font-size: 12px;
    color: var(--secondary-text);
    margin-left: 16px;
    white-space: nowrap;
}

button {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s, box-shadow 0.2s;
}

/* Unified Primary Button Styles */
.step-advance-btn,
#add-executive-btn {
    background-color: var(--g-blue);
    color: white;
}

/* Unified Hover State */
.step-advance-btn:hover,
#add-executive-btn:hover {
    box-shadow: 0 1px 2px 0 rgba(66,133,244,.3), 0 1px 3px 1px rgba(66,133,244,.15);
    background-color: #1a73e8;
}

/* Unified Disabled State */
.step-advance-btn:disabled,
#add-executive-btn:disabled {
    background-color: #a0c3f7;
    box-shadow: none;
    cursor: not-allowed;
}

/* Add space above the second action button on Step 4 */

/* Add space above the first action button on Step 4 */
#generate-plan-btn {
    margin-top: 24px;
}

#executives-list {
    list-style-type: none;
    padding: 0;
    margin-top: 16px;
}

#executives-list li {
    background-color: #e8f0fe;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--g-blue);
}

.exec-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    background-color: var(--border-color); /* Placeholder color */
    border: 2px solid white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    flex-shrink: 0;
}


.exec-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.exec-info {
    flex-grow: 1;
}
#executives-list li .role {
    font-weight: 500;
}

#executives-list li .name {
    color: var(--secondary-text);
}

#executives-list li .remove-btn {
    background: none;
    border: none;
    color: var(--g-red);
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    padding: 0 0 0 8px;
    line-height: 1;
}

.exec-problems {
    margin-top: 12px;
}

.exec-problems label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--primary-text);
}

.exec-problems textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #cdd1d5;
    border-radius: 12px;
    font-size: 14px; 
    font-family: 'Roboto', sans-serif;
    resize: none; /* Disable manual resizing */
    overflow-y: hidden; /* Hide the scrollbar */
    background-color: #fff;
}

.label-with-helper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px; /* Same as original label margin */
}

.label-with-helper label {
    margin-bottom: 0; /* Remove margin from label inside flex */
}

.help-me-write-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--secondary-text);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
}

.help-me-write-btn:hover {
    background-color: #f1f3f4;
}
.exec-problems input.email-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
}

.exec-problems textarea:focus {
    outline: none;
    border-color: var(--g-blue);
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.result-item .brief-text {
    margin: 0;
    line-height: 1.6;
    color: var(--primary-text);
}

.modification-controls {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.modification-controls label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--primary-text);
}

.modification-controls textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    resize: vertical;
    min-height: 40px;
}

.modification-controls textarea:focus {
    outline: none;
    border-color: var(--g-blue);
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.regenerate-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.result-item {
    margin-bottom: 24px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--g-green);
}

.result-item h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
}

.result-item p {
    margin: 0;
    line-height: 1.6;
    color: var(--primary-text);
}

.progress-item {
    margin-bottom: 16px;
}

.progress-item label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.progress-bar-container {
    width: 100%;
    background-color: #ebebeb;
    border-radius: 4px;
    overflow: hidden;
    height: 20px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--g-blue);
    border-radius: 4px;
    transition: width 1s linear;
}

.user-creation-progress {
    margin-top: 24px;
}

.user-creation-progress .progress-bar {
    background-color: var(--g-green);
}

#user-creation-container {
    margin-bottom: 24px;
}

.sub-progress-items, .sub-sub-progress-items {
    margin-top: 12px;
    padding-left: 24px;
    border-left: 2px solid var(--border-color);
}

/* Make sub-bars smaller */
.sub-progress-items .progress-bar-container,
.sub-sub-progress-items .progress-bar-container {
    height: 12px;
}

/* Change color for the deepest level */
.sub-sub-progress-items .progress-bar {
    background-color: var(--g-green);
}

.completion-message {
    margin-top: 24px;
    font-size: 18px;
    font-weight: 500;
    color: var(--g-green);
    text-align: center;
    padding: 16px;
    background-color: #e6f4ea;
    border-radius: 8px;
    margin-bottom: 24px;
}

.user-credential-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--g-yellow);
    border-radius: 8px;
    /* Use margin-bottom for consistent spacing between cards and after the last card. */
    margin-bottom: 20px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.1);
    overflow: hidden;
}

.user-credential-card summary {
    padding: 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-text);
    cursor: pointer;
    outline: none;
    list-style: none; /* Remove default arrow in Firefox */
}

.user-credential-card summary::-webkit-details-marker {
    display: none; /* Remove default arrow in Chrome/Safari */
}

.user-credential-card summary:hover {
    background-color: #f8f9fa;
}

.user-credential-card summary::before {
    content: '▶';
    margin-right: 12px;
    font-size: 12px;
    display: inline-block;
    transition: transform 0.2s ease-in-out;
    color: var(--secondary-text);
}

.user-credential-card details[open] > summary {
    border-bottom: 1px solid var(--border-color);
}

.user-credential-card details[open] > summary::before {
    transform: rotate(90deg);
}

.user-credential-card .card-content {
    padding: 20px 20px 20px 40px; /* Align with summary text */
}
.user-credential-card p {
    margin: 4px 0;
    font-size: 14px;
}

.user-credential-card h5 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.user-credential-card ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: var(--secondary-text);
}

.user-credential-card ul li {
    margin-bottom: 4px;
}

.email-user-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 16px;
    background-color: var(--g-blue);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.email-user-btn:hover {
    background-color: #1a73e8;
    box-shadow: 0 1px 2px 0 rgba(66,133,244,.3), 0 1px 3px 1px rgba(66,133,244,.15);
}

.email-user-btn:disabled {
    background-color: #a0c3f7;
    box-shadow: none;
    cursor: not-allowed;
}

.email-user-btn:disabled:hover {
    background-color: #a0c3f7; /* Keep same color on hover when disabled */
    box-shadow: none;
}


/* --- New Step Styles --- */

#step-navigation {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 32px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin-right: 24px;
}

.nav-step-logo-wrapper {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-step-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nav-step-logo-placeholder {
    width: 32px;
    height: 32px;
    background-color: var(--border-color);
    border-radius: 4px;
}

.details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.details-header-logo {
    height: 40px;
    max-width: 150px;
}

.created-ago-text {
    font-style: italic;
    color: var(--secondary-text);
    font-size: 13px;
    margin-top: 4px;
}
.scenario-card:hover {
    border-color: var(--g-blue);
    box-shadow: 0 1px 3px rgba(66, 133, 244, 0.15);
}
.scenario-card.active {
    background-color: #e8f0fe;
    border-color: var(--g-blue);
}
#admin-nav {
    width: 220px; /* Reduced from 280px */
    flex-shrink: 0;
    position: sticky;
    top: 32px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin-right: 24px;
}

#admin-nav.collapsed,
#step-navigation.collapsed {
    width: 0;
    opacity: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 16px 24px 8px; /* Reduced top padding from 24px */
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px 10px 20px;
    border-left: 4px solid transparent;
    border-radius: 0;
    margin-right: 0;
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

.nav-item:hover {
    background-color: #f8f9fa;
}

.nav-item.active {
    background-color: #f1f3f4;
    color: var(--g-blue);
    border-left: 4px solid var(--g-blue);
}

.nav-item.active svg {
    fill: var(--g-blue);
}

.active-tab {
    background: white !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: var(--g-blue) !important;
    font-weight: 600;
}

.nav-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* --- Thinking Indicator --- */
.thinking-bubble {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    align-self: flex-start;
    width: fit-content;
    margin-bottom: 12px;
}

.thinking-dot {
    width: 6px;
    height: 6px;
    background: #5f6368;
    border-radius: 50%;
    animation: thinking-bounce 1.4s infinite ease-in-out both;
}

.thinking-dot:nth-child(1) { animation-delay: -0.32s; }
.thinking-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes thinking-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* --- Wizard Step Navigation (Keep as fallback for index.html) --- */
#session-list-nav {
    width: 360px; /* Wider than the step navigation */
    flex-shrink: 0;
    position: sticky;
    top: 32px;
}
.nav-step {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    transition: background-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.nav-step.completed {
    cursor: pointer;
}

.nav-step.completed:hover {
    background-color: #f1f3f4;
}

.nav-step.active {
    border-color: var(--g-blue);
    box-shadow: 0 1px 2px 0 rgba(66,133,244,.3), 0 1px 3px 1px rgba(66,133,244,.15);
}

.nav-step .step-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--secondary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-right: 16px;
    transition: background-color 0.3s, color 0.3s;
    flex-shrink: 0;
}

.nav-step.active .step-indicator {
    background-color: var(--g-blue);
    color: white;
}

.nav-step.completed .step-indicator {
    background-color: var(--g-green);
    color: white;
}

.nav-step-info {
    display: flex;
    flex-direction: column;
}

.nav-step-title {
    font-weight: 500;
    color: var(--primary-text);
}

.nav-step-status {
    font-size: 12px;
    color: var(--secondary-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.days-old-text {
    font-style: italic;
    font-size: 12px;
    color: var(--secondary-text);
}

.nav-step.completed .nav-step-status {
    color: var(--g-green);
    font-weight: 500;
}

.nav-step.in-progress {
    border-color: var(--g-blue); /* Keep blue border for active/in-progress */
    box-shadow: 0 1px 2px 0 rgba(66,133,244,.3), 0 1px 3px 1px rgba(66,133,244,.15);
}

.nav-step.in-progress .step-indicator {
    background-color: #669df6; /* A slightly lighter blue for in-progress indicator */
    color: white;
    /* Optional: Add a subtle animation for in-progress */
    /* animation: pulse 1.5s infinite ease-in-out; */
}

.nav-step.in-progress .nav-step-status {
    color: var(--g-blue); /* Blue text for in-progress status */
    font-weight: 500;
}

/* Optional pulse animation can be added here if desired */

.step-container {
    display: none;
}

.step-content {
    padding: 0; /* Reset padding, as main container has it now */
    display: flex;
    flex-direction: column;
}

.step-container.active .step-content {
    padding: 0;
}

.step-container.active {
    display: block;
}

.content-count-controls {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.slider-group {
    flex: 1;
}

.slider-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 14px;
}

.slider-group label span {
    font-weight: 700;
    color: var(--g-blue);
}

.content-slider {
    width: 100%;
}

/* Consistent styling for failed steps */
.nav-step.failed .nav-step-status {
    color: var(--g-red);
    font-weight: 500;
}

.nav-step.failed .step-indicator {
    background-color: var(--g-red);
    color: white;
}

.manual-confirmation-wrapper {
    margin-top: 16px;
}

/* A general-purpose blue button style for both <a> and <button> tags */
.g-blue-btn {
    display: inline-block; /* Important for <a> tags */
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s, box-shadow 0.2s;
    background-color: var(--g-blue);
    color: white;
    text-decoration: none; /* For <a> tags */
    text-align: center;
}

.final-step-content > button {
    align-self: center;
}

.g-blue-btn:hover {
    box-shadow: 0 1px 2px 0 rgba(66,133,244,.3), 0 1px 3px 1px rgba(66,133,244,.15);
    background-color: #1a73e8;
    color: white; /* Ensure text color remains white on hover */
}

.g-blue-btn:disabled {
    background-color: #a0c3f7;
    box-shadow: none;
    cursor: not-allowed;
}

/* A general-purpose red button style */
.g-red-btn {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s, box-shadow 0.2s;
    background-color: var(--g-red);
    color: white;
    text-decoration: none;
    text-align: center;
}

.g-red-btn:hover {
    box-shadow: 0 1px 2px 0 rgba(219,68,55,.3), 0 1px 3px 1px rgba(219,68,55,.15);
    background-color: #c53727; /* Darker red */
    color: white;
}

.g-red-btn:disabled {
    background-color: #f4a9a2; /* Lighter red */
    box-shadow: none;
    cursor: not-allowed;
}

.details-actions {
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Admin Page User List Styles */
.admin-user-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.admin-user-item:last-child {
    border-bottom: none;
}

.admin-user-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.admin-user-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-user-photo-svg {
    width: 32px;
    height: 32px;
    color: var(--secondary-text);
    opacity: 0.6;
}

/* --- User Profile Dropdown --- */
.user-profile-container {
    position: relative;
    margin-left: auto; /* Pushes the profile icon to the far right */
}

.user-profile-trigger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.user-profile-trigger:hover {
    border-color: var(--g-blue);
}

.user-profile-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 220px;
    z-index: 1000;
    padding: 8px 0;
}

.user-profile-dropdown.show {
    display: block;
}

.user-profile-dropdown .welcome-message {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--secondary-text);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.user-profile-dropdown .welcome-message strong {
    color: var(--primary-text);
    display: block;
}

.user-profile-dropdown a {
    display: block;
    padding: 8px 16px;
    color: var(--primary-text);
    text-decoration: none;
    font-size: 14px;
}

.user-profile-dropdown a:hover {
    background-color: #f1f3f4;
}

/* --- Styles moved from index.html --- */

/*
 The 'display: none' rules are for elements that are initially hidden
 and then shown by JavaScript. They are left in the HTML as inline styles
 with a comment for clarity on which script controls them.
 If you prefer a class-based approach, you could create a .hidden class:
 .hidden { display: none; }
 and toggle it with JS.
*/

/* Step 1 */
#context-upload-group {
    margin-top: 32px;
}

/* Step 2 */
#agentspace-creation-container {
    margin-top: 24px;
    margin-bottom: 24px;
}

/* Step 3 */
#step-3 .step-content > p {
    margin-top: 0;
}

/* Step 4, 5, 6 */
.step-description {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--secondary-text);
}

/* Step 4 */
#plan-progress-container {
    margin-top: 0;
}

#plan-results-container {
    /* Margin is now handled by the cards inside */
}

/* Step 5 */
#content-generation-progress-container {
    margin-top: 0;
}

/* Step 6 */
#user-details-container {
    margin-top: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    color: var(--secondary-text);
    font-size: 12px;
}
/* --- User Management Module --- */

.header-nav { display: flex; gap: 20px; margin-left: 40px; }
.header-nav-link { text-decoration: none; color: var(--secondary-text); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 4px; transition: all 0.2s; }
.header-nav-link:hover { background-color: #f1f3f4; color: var(--g-blue); }
.header-nav-link.active { color: var(--g-blue); background-color: #e8f0fe; }
.directory-table-container { background: white; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; margin-top: 20px; }
.directory-table { width: 100%; border-collapse: collapse; text-align: left; }
.directory-table th { background: #f8f9fa; padding: 12px 16px; font-weight: 600; color: var(--secondary-text); font-size: 13px; border-bottom: 1px solid var(--border-color); }
.directory-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); font-size: 14px; vertical-align: middle; }
.badge { padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.badge-green { background: #e6f4ea; color: #137333; }
.badge-red { background: #fce8e6; color: #c5221f; }
.g-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-color); background: white; color: var(--g-blue); padding: 6px 16px; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.g-btn:hover { background: #f8f9fa; box-shadow: 0 1px 2px rgba(60,64,67,0.1); }
.g-btn-outline { border-color: var(--border-color); color: var(--secondary-text); font-weight: 500; }
.g-btn-primary { background: var(--g-blue); color: white; border: none; font-weight: 600; }
.g-btn-primary:hover { background: #174ea6; box-shadow: 0 1px 2px rgba(60,64,67,0.3); color: white; }

/* Configuration Modal Redesign */
.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 24px;
}

.config-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#config-modal .modal-content {
    max-width: 900px;
    width: 95%;
    padding: 32px;
}

.config-section-title {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

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