/* AI Logo Designer - Revision System Styles */

/* AI Logo Sub-Tabs */
.ai-logo-sub-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.ai-sub-tab {
  flex: 1;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px 8px 0 0;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
}

.ai-sub-tab svg {
  width: 18px;
  height: 18px;
}

.ai-sub-tab:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.ai-sub-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ai-sub-content {
  display: none;
}

.ai-sub-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Saved Designs Section */
.saved-designs-header {
  text-align: center;
  margin-bottom: 30px;
}

.saved-designs-header h4 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: var(--text-primary);
}

.saved-designs-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.saved-designs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.saved-design-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: all 0.3s;
  cursor: pointer;
}

.saved-design-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 212, 255, 0.2);
}

.saved-design-preview {
  width: 100%;
  height: 200px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.saved-design-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.saved-design-info {
  padding: 15px;
}

.saved-design-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.saved-design-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.saved-design-prompt {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-design-actions {
  display: flex;
  gap: 8px;
}

.saved-design-actions button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-state p {
  font-size: 18px;
  margin: 10px 0;
}

.empty-state small {
  font-size: 14px;
  opacity: 0.7;
}

/* Edit Logo Section */
.edit-logo-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 12px;
}

.edit-logo-header h4 {
  margin: 0 0 10px 0;
  font-size: 22px;
  color: var(--text-primary);
  font-weight: 600;
}

.edit-logo-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.logo-upload-section {
  max-width: 100%;
  margin: 0 0 30px 0;
}

.upload-zone {
  border: 3px dashed var(--border-color);
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--bg-card);
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-zone:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.05);
}

.upload-zone-content {
  width: 100%;
}

.upload-zone-content svg {
  width: 80px;
  height: 80px;
  color: var(--accent-primary);
  margin: 0 auto 20px;
  display: block;
}

.upload-zone-content h5 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: var(--text-primary);
  font-weight: 600;
}

.upload-zone-content p {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.upload-zone-content small {
  color: var(--text-secondary);
  opacity: 0.7;
  font-size: 13px;
  display: block;
}

.upload-zone-preview {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.upload-zone-preview img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.remove-upload-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: rgba(245, 101, 101, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.remove-upload-btn:hover {
  background: #f56565;
  transform: scale(1.1);
}

.remove-upload-btn svg {
  width: 20px;
  height: 20px;
}

.analyze-logo-btn {
  width: 100%;
  max-width: 500px;
  margin: 25px auto 0;
  padding: 18px 35px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.analyze-logo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.analyze-logo-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.analyze-logo-btn svg {
  width: 22px;
  height: 22px;
}

/* Logo Analysis Results */
.logo-analysis-results {
  margin-top: 40px;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 30px;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
}

.logo-analysis-results h5 {
  margin: 0 0 25px 0;
  font-size: 20px;
  color: var(--accent-primary);
  font-weight: 600;
  text-align: center;
}

.analysis-content {
  display: grid;
  gap: 15px;
  margin-bottom: 20px;
}

.analysis-item {
  background: var(--bg-primary);
  padding: 18px;
  border-radius: 8px;
  border-left: 4px solid var(--accent-primary);
}

.analysis-item strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

.analysis-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.analysis-actions {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

/* Edit Chat Section */
.edit-chat-section {
  margin-top: 30px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.edit-chat-section h5 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
}

.edit-chat-section > p {
  margin: 0 0 15px 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.edit-chat-messages {
  background: var(--bg-primary);
  border-radius: 6px;
  padding: 12px;
  min-height: 120px;
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
}

.edit-chat-message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  animation: slideIn 0.3s ease;
}

.edit-chat-message.user {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-left: 15%;
  text-align: right;
}

.edit-chat-message.ai {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  margin-right: 15%;
}

.edit-chat-message-label {
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 4px;
  opacity: 0.7;
  text-transform: uppercase;
}

.edit-chat-message-text {
  font-size: 13px;
  line-height: 1.4;
}

.edit-chat-input-area {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.edit-chat-input-area textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: white;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  resize: none;
  transition: all 0.2s;
  min-height: 40px;
  max-height: 80px;
}

.edit-chat-input-area textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.edit-chat-input-area button {
  padding: 10px 16px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: auto;
}

.edit-chat-input-area button svg {
  width: 16px;
  height: 16px;
}

.edit-chat-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 12px;
}

.edit-chat-actions button {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.edit-chat-actions button svg {
  width: 14px;
  height: 14px;
}

.edit-chat-empty {
  text-align: center;
  padding: 30px 15px;
  color: var(--text-secondary);
}

.edit-chat-empty svg {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  opacity: 0.3;
}

.edit-chat-empty p {
  font-size: 12px;
  margin: 0;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo History Panel */
.ai-logo-history-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 600px;
  height: 100vh;
  background: var(--bg-primary);
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.history-header h3 {
  margin: 0;
  font-size: 20px;
  color: var(--text-primary);
}

.close-history-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.2s;
}

.close-history-btn:hover {
  color: var(--accent-primary);
  transform: scale(1.1);
}

.logo-history-grid {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  align-content: start;
}

.logo-history-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.logo-history-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 212, 255, 0.2);
}

.logo-history-card .logo-preview {
  width: 100%;
  height: 200px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.logo-history-card .logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-history-card .logo-info {
  padding: 15px;
}

.logo-history-card .brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.logo-history-card .logo-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.logo-history-card .logo-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.logo-tag {
  background: var(--accent-primary);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
}

.logo-history-card .logo-actions {
  display: flex;
  gap: 8px;
}

.logo-history-card .logo-actions button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.logo-action-view {
  background: #48bb78;
  color: white;
}

.logo-action-revise {
  background: #4299e1;
  color: white;
}

.logo-action-delete {
  background: #f56565;
  color: white;
}

.logo-history-card .logo-actions button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Revision Modal */
.ai-logo-revision-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.revision-modal-content {
  background: var(--bg-primary);
  border-radius: 16px;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.revision-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.revision-header h3 {
  margin: 0;
  font-size: 22px;
  color: var(--text-primary);
}

.close-revision-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.2s;
}

.close-revision-btn:hover {
  color: var(--accent-primary);
  transform: rotate(90deg);
}

.revision-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.revision-preview {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  margin-bottom: 30px;
  align-items: center;
}

.current-logo, .preview-logo {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.current-logo h4, .preview-logo h4 {
  margin: 0 0 15px 0;
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.current-logo img {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 20px;
}

.preview-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  color: var(--text-secondary);
  font-style: italic;
}

.preview-arrow {
  font-size: 32px;
  color: var(--accent-primary);
  font-weight: bold;
}

.revision-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.control-section {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.control-section label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 14px;
}

.control-section input,
.control-section select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
}

.color-palette-selector,
.typography-selector,
.logo-type-selector,
.design-style-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.selector-option {
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  background: var(--bg-primary);
}

.selector-option:hover {
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

.selector-option.selected {
  border-color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
  font-weight: 600;
}

.color-option {
  height: 60px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px;
}

.color-swatch-mini {
  flex: 1;
  border-radius: 4px;
}

.revision-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  padding: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
}

.btn-primary, .btn-secondary {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-primary);
  border-color: var(--accent-primary);
}

/* History Button */
.history-btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.history-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

/* Logo Merge/Combine System */
.merge-mode-active .logo-history-card {
  cursor: pointer;
  position: relative;
}

.logo-history-card .merge-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.merge-mode-active .logo-history-card .merge-checkbox {
  display: flex;
}

.logo-history-card.selected .merge-checkbox {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.logo-history-card.selected .merge-checkbox::after {
  content: '✓';
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.merge-toolbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  display: none;
  align-items: center;
  gap: 20px;
  z-index: 1100;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(100px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.merge-toolbar.active {
  display: flex;
}

.merge-toolbar .selected-count {
  color: var(--text-primary);
  font-weight: 600;
}

.merge-toolbar button {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.merge-toolbar .merge-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.merge-toolbar .cancel-merge-btn {
  background: var(--bg-card);
  color: var(--text-primary);
}

.merge-toolbar button:hover {
  transform: scale(1.05);
}

/* Logo Merge Modal */
.logo-merge-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.logo-merge-modal.active {
  display: flex;
}

.merge-modal-content {
  background: var(--bg-primary);
  border-radius: 16px;
  width: 90%;
  max-width: 1400px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.merge-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.merge-header h3 {
  margin: 0;
  font-size: 22px;
  color: var(--text-primary);
}

.merge-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.merge-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.merge-logo-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  border: 2px solid var(--border-color);
}

.merge-logo-card h4 {
  margin: 0 0 15px 0;
  color: var(--text-primary);
  font-size: 16px;
}

.merge-logo-preview {
  width: 100%;
  height: 200px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  padding: 20px;
}

.merge-logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.merge-element-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.merge-element-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.merge-element-option:hover {
  background: rgba(0, 212, 255, 0.1);
}

.merge-element-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.merge-element-option label {
  cursor: pointer;
  flex: 1;
  color: var(--text-primary);
}

.merge-preview-section {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  border: 2px solid var(--accent-primary);
}

.merge-preview-section h4 {
  margin: 0 0 15px 0;
  color: var(--accent-primary);
  font-size: 18px;
  text-align: center;
}

.merge-preview-placeholder {
  width: 100%;
  height: 300px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  padding: 20px;
}

.merge-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
  .ai-logo-history-panel {
    width: 100%;
  }
  
  .revision-modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .revision-preview {
    grid-template-columns: 1fr;
  }
  
  .preview-arrow {
    transform: rotate(90deg);
  }
  
  .revision-controls {
    grid-template-columns: 1fr;
  }
  
  .merge-logos-grid {
    grid-template-columns: 1fr;
  }
  
  .merge-toolbar {
    width: 90%;
    padding: 10px 15px;
  }
}
