/* D3E Project Generator - Modern UI Styles */

/* Force CSS to load */
body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(59, 130, 246, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(139, 92, 246, 0.05) 0%,
      transparent 50%
    );
    color: #111827;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

body::before {
  content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  background: linear-gradient(
      45deg,
      transparent 48%,
      rgba(59, 130, 246, 0.02) 49%,
      rgba(59, 130, 246, 0.02) 51%,
      transparent 52%
    ),
    linear-gradient(
      -45deg,
      transparent 48%,
      rgba(139, 92, 246, 0.02) 49%,
      rgba(139, 92, 246, 0.02) 51%,
      transparent 52%
    );
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --bg-dark: #1e293b;
    
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 10px 10px -5px rgb(0 0 0 / 0.04);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

/* Layout */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 2rem 2rem;
    width: 100%;
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    width: 100%;
    max-width: 900px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* padding-top: 5rem; */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-title .highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    position: relative;
}

.hero-title .highlight::after {
  content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 2px;
    opacity: 0.3;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
}

/* Update Mode Styling */
.input-wrapper.update-mode {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1),
                0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.input-container {
    position: relative; /* Add relative positioning for modal */
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.input-wrapper {
    position: relative;
    background: var(--bg-primary);
    border-radius: 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    min-height: 200px;
    width: 100%;
    margin: 0 auto;
}

.textarea-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Removed minimized styles - no longer needed
.input-wrapper.minimized {
    min-height: 80px;
    max-height: 80px;
    transform: scale(0.95);
    opacity: 0.7;
    pointer-events: none;
}

.input-wrapper.minimized textarea {
    min-height: 40px;
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    overflow: hidden;
}

.input-wrapper.minimized .input-actions {
    display: none;
}
*/

.input-wrapper:focus-within {
    border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1),
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.input-wrapper textarea {
    width: 100%;
    padding: 2rem 2rem 5rem 2rem;
    border: none;
    outline: none;
    font-size: 1.125rem;
    font-family: var(--font-family);
    background: transparent;
    resize: none;
    min-height: 120px;
    line-height: 1.5;
    overflow: hidden;
    transition: height 0.2s ease;
}

.input-wrapper textarea::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

/* Selected Files Display in Input Container */
.selected-files-display {
  margin: 0.5rem 0;
  padding: 0.75rem;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.selected-files-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.selected-files-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.clear-all-btn {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.clear-all-btn:hover {
  background: rgba(220, 53, 69, 0.1);
}

.selected-files-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 1.5rem;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 16px;
  font-size: 0.75rem;
  color: var(--text-primary);
  max-width: 200px;
}

.file-chip i {
  color: var(--primary-color);
  font-size: 0.625rem;
}

.file-chip .chip-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
}

.file-chip .chip-remove {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  transition: all 0.2s ease;
}

.file-chip .chip-remove:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}


.input-actions {
    position: absolute;
    bottom: 1.5rem;
    left: 2rem;
    right: 2rem;
    display: flex;
  justify-content: space-between;
    align-items: center;
}

.generate-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Progress Section */
.progress-section {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    border: none;
    min-height: auto;
    width: 100%;
    max-width: 900px;
    margin-top: 2rem;
    display: none;
}

.progress-section.show {
    display: block;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Forms */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), var(--shadow-md);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    border: none;
    font-weight: 700;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
    width: auto;
    min-width: 180px;
    max-width: 220px;
    flex-shrink: 0;
}

.btn-primary::before {
  content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
    transition: left 0.5s;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    border: none;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    gap: 0.375rem;
}

.btn-sm i {
    font-size: 0.875rem;
}

/* Update button specific styling */
#updateBtn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  border: none;
  font-weight: 600;
  letter-spacing: 0.025em;
  margin-right: 5px;
  transition: all 0.3s ease;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

#updateBtn:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

#updateBtn:active:not(:disabled) {
  transform: translateY(-1px);
}

#updateBtn i {
  font-size: 1rem;
}

/* Progress Section */
.progress-section {
    padding: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.progress-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-text {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--bg-gradient);
    border-radius: var(--radius-lg);
    transition: width 0.5s ease;
    width: 0%;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
  content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 4rem;
    text-align: right;
    background: rgba(139, 92, 246, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.current-file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #374151;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.current-file i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.current-file span {
    font-weight: 500;
    color: #374151;
}

/* Project Plan Section */
.project-plan-section {
    margin-top: 2rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    backdrop-filter: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.count-badge {
    background: var(--bg-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.plan-list {
    max-height: 300px;
    overflow-y: auto;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: rgba(249, 250, 251, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.plan-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.plan-item i {
    color: var(--primary-color);
    width: 1.25rem;
    text-align: center;
    font-size: 1rem;
}

.plan-item .file-path {
    flex: 1;
    color: var(--text-primary);
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-weight: 500;
}

.plan-item .file-type {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* File Status Section */
.file-status-section {
    margin-top: 2rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    backdrop-filter: none;
}

.status-summary {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.status-item {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.status-item.success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.2);
}

.status-item.processing {
    background: rgba(6, 182, 212, 0.1);
    color: #155e75;
    border-color: rgba(6, 182, 212, 0.2);
}

.status-item.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.2);
}

.file-status-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1.5rem;
}

.file-status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: rgba(249, 250, 251, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.file-status-item::before {
  content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.file-status-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.file-status-item.generated::before {
    background: var(--success-color);
}

.file-status-item.generating::before {
    background: var(--info-color);
}

.file-status-item.pending::before {
    background: var(--warning-color);
}

.file-status-item.failed::before {
    background: var(--danger-color);
}

.file-status-item i {
    width: 1.25rem;
    text-align: center;
    font-size: 1.125rem;
}

.file-status-item.generated i {
    color: var(--success-color);
}

.file-status-item.generating i {
    color: var(--info-color);
    animation: pulse 1.5s ease-in-out infinite;
}

.file-status-item.pending i {
    color: var(--warning-color);
}

.file-status-item.failed i {
    color: var(--danger-color);
}

.file-status-item .file-info {
    flex: 1;
}

.file-status-item .file-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    margin-bottom: 0.25rem;
}

.file-status-item .file-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.file-status-item .file-size {
    font-size: 0.75rem;
    color: var(--text-muted);
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    margin-top: 0.25rem;
}

.file-status-item .status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.file-status-item.generated .status-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.file-status-item.generating .status-badge {
    background: rgba(6, 182, 212, 0.1);
    color: #155e75;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.file-status-item.pending .status-badge {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.file-status-item.failed .status-badge {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Error Section */
.error-section {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

.error-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--danger-color);
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 1rem;
    color: #991b1b;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-size: 0.875rem;
    white-space: pre-wrap;
}

/* Progress Section */
.progress-section {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 0;
    animation: slideInUp 0.5s ease-out;
    position: relative;
    z-index: 10;
}

.progress-container {
    background: var(--bg-primary);
    border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: none;
    overflow: hidden;
    padding: 2.5rem;
    margin-bottom: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: swing 2s ease-in-out infinite;
}

.progress-actions-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.progress-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.status-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.percentage-text {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.progress-status {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.progress-bar-container {
    margin-bottom: 2rem;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(229, 231, 235, 0.5);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    border-radius: 8px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.progress-bar-fill::after {
  content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
    animation: shimmer 2s infinite;
}

.progress-percentage {
    position: absolute;
    top: -2rem;
    right: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.generated-files {
    margin-bottom: 2rem;
}

.files-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.files-header i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.files-header span {
    font-weight: 600;
    color: var(--text-primary);
}

.file-count {
    margin-left: auto;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.files-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    animation: slideInLeft 0.3s ease-out;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

.file-item i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

.file-item .file-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.file-item .file-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.file-status.success {
    color: #10b981;
}

.file-status.error {
    color: #ef4444;
}

.file-status.processing {
    color: #f59e0b;
}

.progress-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes swing {
  0%,
  100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-15deg);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse {
  0%,
  100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Loading dots animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
  content: "";
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
  0%,
  20% {
    content: "";
    }
    40% {
    content: ".";
    }
    60% {
    content: "..";
    }
  80%,
  100% {
    content: "...";
    }
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.footer-links a:hover {
    color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-content {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

.toast.info {
    border-left: 4px solid var(--info-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .progress-section {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .progress-container {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 4rem;
    }
    
    .progress-section {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .progress-container {
        padding: 1.5rem;
    }
    
    .progress-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .progress-title {
        font-size: 1.125rem;
    }
    
    .files-list {
        max-height: 200px;
    }
    
    .file-item {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .file-item .file-name {
        font-size: 0.8rem;
    }
    
    .file-item .file-status {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 3.5rem;
    }
    
    .progress-container {
        padding: 1rem;
    }
    
    .progress-title {
        font-size: 1rem;
    }
    
    .progress-icon {
        font-size: 1.25rem;
    }
    
    .files-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .file-count {
        margin-left: 0;
    }
}

@media (max-width: 1024px) {
    .main-content {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .input-container {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .input-container {
        max-width: 100%;
    }
    
    .input-wrapper textarea {
        font-size: 1rem;
        padding: 1.25rem 1.25rem 3.5rem 1.25rem;
    }
    
    .input-actions {
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
    }
    
    .add-btn {
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .generate-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Keep the generate button fixed width on mobile too */
    .input-actions .btn-primary {
        width: auto;
        min-width: 160px;
        max-width: 200px;
    }
    
    .progress-section {
        margin-top: 1rem;
    }
    
    .progress-bar-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .status-summary {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .file-status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .file-status-item .status-badge {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .input-wrapper textarea {
        font-size: 0.875rem;
        padding: 1rem 1rem 3rem 1rem;
    }
    
    .input-actions {
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }
    
    .add-btn {
        width: 2rem;
        height: 2rem;
    }
    
    .progress-section {
        padding: 1rem;
    }
    
    .file-status-section,
    .project-plan-section {
        padding: 1rem;
    }
}

/* Static Website Header Styles - Works across all pages */
.static-website-header {
    margin-bottom: 2rem;
    margin-top: 0;
    padding: 1rem;
    text-align: center;
    width: 100%;
}

.static-header-top-text {
    text-align: center;
    width: 100%;
}

.enterprise-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    color: #000;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.enterprise-banner i {
    font-size: 0.875rem;
    color: #ffd102 !important;
}

.static-header-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e2a4a;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    text-align: center;
    letter-spacing: -0.02em;
    width: 100%;
}

.static-header-title .highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.static-header-description {
    font-size: 1rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 700px;
    width: 100%;
}

/* Sample Prompts Styles - Works across all pages */
.sample-prompts {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.25rem;
    padding: 1rem 0;
    width: 100%;
}

.sample-prompts-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.sample-prompt-btn {
    /* Colors, fonts, and styles handled by original HTML inline styles */
    /* Only layout properties here for responsive UI */
}

/* Static Prompts Styles - Works across all pages */
.static-prompts {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem 0;
    width: 100%;
}

.static-prompts-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.static-prompts-container {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: auto;
}

.static-prompt-btn {
    /* Colors, fonts, and styles handled by original HTML inline styles */
    /* Only layout properties here for responsive UI */
}

/* Responsive Styles for Header and Prompts */
@media (max-width: 1024px) {
    .static-header-title {
        font-size: 2rem;
    }
    
    .static-header-description {
        font-size: 0.9375rem;
    }
    
    .enterprise-banner {
        font-size: 0.8125rem;
        padding: 0.45rem 1.1rem;
    }
    
    .sample-prompts,
    .static-prompts {
        gap: 0.625rem;
    }
    
    .sample-prompt-btn,
    .static-prompt-btn {
        /* Font sizes handled by original styles */
    }
}

@media (max-width: 768px) {
    .static-website-header {
        padding: 0 1.5rem 1rem 1.5rem;
    }
    
    .static-header-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .static-header-description {
        font-size: 0.9375rem;
        padding: 0 0.5rem;
    }
    
    .enterprise-banner {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        gap: 0.375rem;
        margin-bottom: 1.25rem;
    }
    
    .enterprise-banner i {
        font-size: 0.75rem;
    }
    
    .sample-prompts,
    .static-prompts {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 1.25rem;
    }
    
    .sample-prompts-label,
    .static-prompts-label {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .sample-prompt-btn,
    .static-prompt-btn {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1.25rem;
    }
    
    .static-prompts-container {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .static-header-title {
        font-size: 1.5rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }
    
    .static-header-description {
        font-size: 0.875rem;
        padding: 0 0.75rem;
        white-space: normal;
    }
    
    .enterprise-banner {
        font-size: 0.7rem;
        padding: 0.375rem 0.875rem;
        gap: 0.3rem;
        margin-bottom: 1rem;
    }
    
    .enterprise-banner i {
        font-size: 0.7rem;
    }
    
    .sample-prompts,
    .static-prompts {
        margin-top: 1rem;
        padding: 0.75rem 0;
        gap: 0.625rem;
    }
    
    .sample-prompts-label,
    .static-prompts-label {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }
    
    .sample-prompt-btn,
    .static-prompt-btn {
        /* Font sizes handled by original styles */
        max-width: 100%;
        width: 100%;
    }
    
    .static-prompts-container {
        width: 100%;
        gap: 0.625rem;
    }
}

/* File Selection Modal Styles */
.file-selection-modal {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  display: none;
  margin-top: 1rem;
  background: transparent;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  width: 100%;
  /* max-width: 600px; */
  max-height: 400px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin: 0 auto;
}

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  border-radius: 12px 12px 0 0;
}

/* Search Container */
.search-container {
  position: relative;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.search-icon {
  position: absolute;
  left: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  z-index: 1;
}

.file-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.3s ease;
  outline: none;
}

.file-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.file-search-input::placeholder {
  color: var(--text-muted);
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.btn-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

/* Files List Container */
.files-list-container {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-primary);
  min-height: 200px;
  max-height: 300px;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.1rem;
  margin: 0;
}

.update-files-list {
  padding: 0;
}

.update-file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  background: white;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.update-file-item:hover {
  background: #f8f9fa;
}

.update-file-item.selected {
  background: #e3f2fd;
  border-left: 4px solid var(--primary-color);
}

.update-file-item:last-child {
  border-bottom: none;
}

.update-file-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.update-file-icon {
  color: var(--primary-color);
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
}

.update-file-name {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  margin-bottom: 0.25rem;
}

.update-file-path {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  line-height: 1.2;
}

.update-file-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  margin-top: 0.25rem;
  opacity: 0.8;
}

.file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.loading i {
  margin-right: 0.5rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Selected Files Section */
.selected-files-section {
  padding: 1.5rem;
  background: white;
  border-top: 1px solid #e9ecef;
}

.selected-files-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.selected-files-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.clear-all-btn {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.clear-all-btn:hover {
  background: rgba(220, 53, 69, 0.1);
}

.selected-files-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2rem;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-primary);
  max-width: 200px;
  position: relative;
  overflow: visible;
}

.file-chip i {
  color: var(--primary-color);
  font-size: 0.75rem;
}

.file-chip .chip-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
}

.file-chip .chip-remove {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.file-chip .chip-remove:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}


/* Action Buttons */
.update-modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  border-radius: 0 0 16px 16px;
}

.btn-back {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-back:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

.btn-send {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-send:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-send:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive Design for Update Modal */
@media (max-width: 768px) {
  .update-modal {
    padding: 1rem;
  }

  .update-modal-content {
    max-height: 95vh;
  }

  .update-modal-header,
  .update-modal-body,
  .update-modal-footer {
    padding: 1rem;
  }

  .update-modal-header h3 {
    font-size: 1.125rem;
  }

  .files-list-container {
    max-height: 250px;
  }

  .update-modal-footer {
    flex-direction: column;
  }

  .update-modal-footer .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .update-modal {
    padding: 0.5rem;
  }

  .update-modal-content {
    border-radius: 16px;
  }

  .update-modal-header,
  .update-modal-body,
  .update-modal-footer {
    padding: 0.75rem;
  }

  .files-list-container {
    max-height: 200px;
  }

  .update-file-item {
    padding: 0.5rem;
  }

  .update-file-name {
    font-size: 0.8rem;
  }

  .update-file-path {
    font-size: 0.7rem;
  }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

/* History Button (Top-Right) */
.btn-history {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.btn-history:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-history i {
  font-size: 1rem;
}

/* History Modal */
/* History Sidebar Container */
.history-sidebar-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2000;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.history-sidebar-container.show {
  pointer-events: all;
  opacity: 1;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.history-sidebar-container.show .sidebar-overlay {
  opacity: 1;
}

/* Sidebar Panel */
.history-sidebar-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  background: var(--bg-primary);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-sidebar-container.show .history-sidebar-panel {
  transform: translateX(0);
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sidebar-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-primary);
}

.sidebar-panel-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-panel-header i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.sidebar-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--bg-secondary);
}

.sidebar-item {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-item:hover {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.05);
  transform: translateX(4px);
}

.sidebar-item.active {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.sidebar-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.sidebar-item-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-item-type.new {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.sidebar-item-type.update {
  background: rgba(59, 130, 246, 0.1);
  color: #1e40af;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.sidebar-item-type.single {
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.sidebar-item-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-item-prompt {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.sidebar-loading i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* History Tabs */
.history-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-primary);
  padding: 0 1rem;
}

.history-tab {
  flex: 1;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  position: relative;
  margin-bottom: -2px;
}

.history-tab:hover {
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.05);
}

.history-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.05);
}

.history-tab i {
  font-size: 1rem;
}

.history-tab-content {
  display: none;
  flex: 1;
  overflow: hidden;
}

.history-tab-content.active {
  display: flex;
  flex-direction: column;
}

/* Error Fix Item Specific Styling */
.sidebar-item.error-fix {
  border-left: 4px solid #f59e0b;
}

.sidebar-item.error-fix .sidebar-item-header i {
  color: #f59e0b;
}

.error-fix-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #d97706;
  margin-top: 0.5rem;
}

.error-fix-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.error-fix-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Empty State */
.history-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-secondary);
}

.history-empty-state i {
  font-size: 4rem;
  color: var(--border-color);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.history-empty-state h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.history-empty-state p {
  font-size: 0.875rem;
  margin: 0;
}

/* AI Response History Styles for Detail View */
.ai-responses-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.ai-responses-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e2a4a;
}

.ai-responses-header i {
  color: #3b82f6;
}

.ai-response-timeline {
  position: relative;
  padding-left: 2rem;
}

.ai-response-timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #3b82f6 0%, #e5e7eb 100%);
}

.ai-response-item {
  position: relative;
  margin-bottom: 1.5rem;
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.ai-response-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateX(4px);
}

.ai-response-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  background: #3b82f6;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ai-response-item.success::before {
  background: #10b981;
}

.ai-response-item.error::before {
  background: #ef4444;
}

.ai-response-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.ai-response-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #1e2a4a;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.95rem;
}

.ai-response-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.ai-response-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.ai-response-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.ai-response-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.ai-response-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.ai-response-errors {
  background: #fef3f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.ai-response-errors h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  color: #dc2626;
}

.ai-response-error-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-response-error-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #fee2e2;
  font-size: 0.875rem;
  color: #374151;
  font-family: 'Monaco', 'Menlo', monospace;
}

.ai-response-error-list li:last-child {
  border-bottom: none;
}

.ai-response-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ai-response-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.813rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-response-btn:hover {
  background: #f9fafb;
  border-color: #3b82f6;
  color: #2563eb;
}

.ai-response-diff {
  border-radius: 8px;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  display: none;
}

.ai-response-diff pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* History Detail View (Full Page) */
.history-detail-view {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 1500;
  display: flex;
  flex-direction: column;
}

.detail-view-header {
  padding: 1.5rem 2rem;
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateX(-2px);
}

.btn-back i {
  font-size: 1rem;
}

.detail-view-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.detail-view-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--bg-secondary);
}

.detail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  padding: 3rem;
}

.detail-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.detail-placeholder p {
  font-size: 1.125rem;
}

.detail-content {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* Chat-like Message Bubbles */
.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section:first-child {
  margin-top: 0;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.detail-meta-item i {
  color: var(--primary-color);
}

.detail-meta-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* User Message (Prompt) */
.detail-prompt-box {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border-radius: 18px 18px 4px 18px;
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-left: auto;
  max-width: 85%;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.detail-section.user-message {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.detail-section.assistant-message {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.detail-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-section h3 i {
  color: var(--primary-color);
  font-size: 0.875rem;
}

/* Assistant Response (Files) */
.detail-files-list {
  padding: 1.25rem 1.5rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.detail-files-list > p {
  margin: 0;
  color: var(--text-muted);
}

.detail-file-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s ease;
  margin-bottom: 0.75rem;
}

.detail-file-item:last-child {
  margin-bottom: 0;
}

.detail-file-item:hover {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.05);
  transform: translateX(4px);
}

.detail-file-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  color: var(--primary-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.detail-file-info {
  flex: 1;
}

.detail-file-path {
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.detail-file-type {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.detail-file-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Responsive Design for History Sidebar */
@media (max-width: 1024px) {
  .history-sidebar-panel {
    width: 100%;
    max-width: 350px;
  }
  
  .history-detail {
    padding: 1.5rem;
  }
  
  .detail-content {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .btn-history {
    top: 1rem;
    right: 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .history-sidebar-panel {
    width: 100%;
    max-width: 100%;
  }
  
  .sidebar-panel-body {
    flex-direction: column;
  }
  
  .history-tabs {
    padding: 0 0.5rem;
  }
  
  .history-tab {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }
  
  .history-tab span {
    display: none;
  }
  
  .history-tab i {
    font-size: 1.125rem;
  }
  
  .detail-view-header {
    padding: 1rem 1.5rem;
  }
  
  .detail-view-content {
    padding: 1rem;
  }
  
  .detail-content {
    max-width: 100%;
  }
  
  .detail-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .detail-prompt-box {
    max-width: 90%;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .btn-history span {
    display: none;
  }
  
  .btn-history {
    padding: 0.6rem;
    width: 2.5rem;
    height: 2.5rem;
    justify-content: center;
  }
  
  .sidebar-panel-header {
    padding: 1rem;
  }
  
  .sidebar-panel-header h2 {
    font-size: 1.25rem;
  }
  
  .history-list {
    padding: 1rem 0.75rem;
  }
  
  .detail-view-header {
    padding: 1rem;
  }
  
  .detail-view-header h2 {
    font-size: 1.125rem;
  }
  
  .btn-back {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .detail-view-content {
    padding: 1rem 0.75rem;
  }
  
  .detail-prompt-box {
    max-width: 95%;
    font-size: 0.9rem;
  }
  
  .detail-file-item {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Generated Images Carousel Styles */
.generated-images-section {
  margin-top: 2rem;
}

.image-carousel {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.carousel-container {
  overflow: hidden;
  border-radius: 8px;
  background: #f9fafb;
  min-height: 400px;
  max-height: 600px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  height: 100%;
  box-sizing: border-box;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  animation: fadeIn 0.3s ease;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.carousel-item .image-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 400px;
  color: #6b7280;
  position: absolute;
  top: 0;
  left: 0;
}

.carousel-item .image-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 400px;
  color: #ef4444;
  padding: 2rem;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
}

/* Video carousel styles */
.video-carousel-item {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  height: 100%;
  box-sizing: border-box;
}

.video-carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: block;
}

.video-carousel-item .video-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 400px;
  color: #6b7280;
  position: absolute;
  top: 0;
  left: 0;
}

.video-carousel-item .video-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 400px;
  color: #ef4444;
  padding: 2rem;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel-prev {
  left: 0.5rem;
}

.carousel-next {
  right: 0.5rem;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  padding: 0;
}

.carousel-indicator:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.carousel-indicator.active {
  background: #3b82f6;
  width: 24px;
  border-radius: 4px;
}

/* Responsive carousel styles */
@media (max-width: 768px) {
  .carousel-container {
    min-height: 300px;
    max-height: 400px;
    height: 350px;
  }
  
  .carousel-item {
    padding: 0;
  }
  
  .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .carousel-item .image-loading,
  .carousel-item .image-error {
    min-height: 300px;
  }
  
  .carousel-item .video-loading,
  .carousel-item .video-error {
    min-height: 300px;
  }
  
  .carousel-btn {
    width: 2rem;
    height: 2rem;
  }
  
  .carousel-prev {
    left: 0.25rem;
  }
  
  .carousel-next {
    right: 0.25rem;
  }
}

/* View Toggle Buttons */
.view-toggle-buttons {
  display: flex;
  gap: 0.5rem;
  background: #f3f4f6;
  padding: 0.25rem;
  border-radius: 8px;
}

.view-toggle-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.view-toggle-btn:not(.active) {
  background: transparent;
  color: #6b7280;
}

.view-toggle-btn.active {
  background: white;
  color: #3b82f6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.view-toggle-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
  color: #374151;
}

.plan-content-view {
  width: 100%;
}