* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f0f4fa;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* overflow: hidden; */
}

/* Header Styles */
.app-header {
  background: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo i {
  font-size: 2rem;
  color: #2563eb;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
}

.toolbar {
  display: flex;
  gap: 0.5rem;
}

.history-indicator {
  display: flex;
  gap: 0.3rem;
  margin-left: 1rem;
}

.history-btn {
  background: white;
  border: 1px solid #d1d9e6;
  border-radius: 30px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.history-btn:hover:not(:disabled) {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.history-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d9e6;
  background: white;
  border-radius: 40px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn:hover {
  background: #f0f4fe;
  border-color: #2563eb;
}

/* Main Layout */
.builder {
  display: grid;
  grid-template-columns: 250px 1fr 300px;
  gap: 1.5rem;
  padding: 1.5rem;
  flex: 1;
  min-height: 0;
  height: calc(100vh - 80px);
    /* position: absolute; */
  overflow: hidden;
}

/* Panels */
.panel {
  background: white;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9eff5;
  display: flex;
  flex-direction: column;
  min-height: 0vh;
  height: 100%;
  overflow: hidden;
  /* overflow-y: auto; */
  
}

.panel h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #f1f5f9;
  flex-shrink: 0;
}

/* Left Panel - Components */
.components-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow-y: auto;
  padding-right: 0.3rem;
  flex: 1;
}

/* Scrollbar Styles */
.components-list::-webkit-scrollbar,
#canvasContainer::-webkit-scrollbar,
#propertyEditor::-webkit-scrollbar {
  width: 6px;
}

.components-list::-webkit-scrollbar-track,
#canvasContainer::-webkit-scrollbar-track,
#propertyEditor::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.components-list::-webkit-scrollbar-thumb,
#canvasContainer::-webkit-scrollbar-thumb,
#propertyEditor::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.components-list::-webkit-scrollbar-thumb:hover,
#canvasContainer::-webkit-scrollbar-thumb:hover,
#propertyEditor::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.component {
  background: #f8fafd;
  border: 2px solid #e4eaf2;
  border-radius: 40px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: grab;
  transition: all 0.2s;
  user-select: none;
  flex-shrink: 0;
}

.component:hover {
  background: #eef2ff;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.1);
}

.component:active {
  cursor: grabbing;
  opacity: 0.8;
}

.component i {
  color: #2563eb;
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.hint {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
  flex-shrink: 0;
}

/* Center Panel - Canvas */
.canvas {
  background: white;
  border-radius: 28px;
  padding: 1.5rem;
  border: 3px dashed #cbd5e1;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.canvas.drag-over {
  border-color: #2563eb;
  background: #f8fafd;
}

.canvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

#canvasContainer {
  overflow-y: auto;
  flex: 1;
  padding-right: 0.5rem;
  min-height: 0;
}

.canvas-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  color: #94a3b8;
  gap: 1rem;
}

.canvas-placeholder i {
  font-size: 3rem;
  opacity: 0.3;
}

/* Canvas Items */
.canvas-item {
  background: white;
  border: 2px solid #eef2f6;
  border-radius: 20px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}

.canvas-item:last-child {
  margin-bottom: 0;
}

.canvas-item:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.canvas-item.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px #2563eb20;
  background: #fafcff;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  color: #64748b;
}

.item-controls {
  display: flex;
  gap: 0.3rem;
}

.item-controls button {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: all 0.2s;
  margin: 0 2px;
}

.item-controls button:hover {
  background: #2563eb;
  color: white;
  transform: scale(1.1);
}

.item-controls .delete-btn:hover {
  background: #dc2626;
  color: white;
}

.item-controls .duplicate-btn:hover {
  background: #059669;
  color: white;
}

/* Content styles */
.canvas-item h1,
.canvas-item h2,
.canvas-item h3 {
  margin: 0.5rem 0;
  padding: 0.25rem;
}

.canvas-item p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0.5rem 0;
  padding: 0.25rem;
}

.canvas-item img {
  max-width: 100%;
  border-radius: 16px;
  margin: 0.5rem 0;
}

/* Right Panel - Properties (FIXED - Ek Scroll Mein Sab) */
.right-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: white;
  border-radius: 24px;
}

#propertyEditor {
  overflow-y: auto;
  flex: 1;
  padding: 0 1rem 0.5rem 1rem;
  min-height: 0%;
}

.properties-placeholder {
  text-align: center;
  color: #94a3b8;
  padding: 2rem 0;
}

.properties-placeholder .small {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: #cbd5e1;
}

/* Property Panel Styles */
.property-group {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8fafd;
  border-radius: 16px;
}

.property-group h4 {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-row {
  margin-bottom: 1rem;
}

.property-row label {
  display: block;
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.property-input,
.property-select {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: all 0.2s;
  background: white;
}

.property-input:focus,
.property-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #2563eb20;
}

.color-picker {
  width: 100%;
  height: 45px;
  border: 2px solid #e2e8f0;
  border-radius: 30px;
  padding: 0.2rem;
  cursor: pointer;
}

.range-slider {
  width: 100%;
  margin: 0.5rem 0;
}

.apply-btn {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 40px;
  padding: 0.8rem 1.5rem;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.apply-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px #2563eb30;
}

/* Keyboard Shortcuts Hint */
.shortcuts-hint {
  background: #f1f5f9;
  border-radius: 16px;
  padding: 1rem;
  margin: 0 1rem 1rem 1rem;
  font-size: 0.8rem;
}

.shortcuts-hint kbd {
  background: white;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  border: 1px solid #cbd5e1;
  font-family: monospace;
  font-size: 0.7rem;
  margin: 0 2px;
}

.shortcuts-hint p {
  margin: 0.3rem 0;
  color: #475569;
}

/* Export Options */
.export-options {
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.export-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 40px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #1e293b;
  font-size: 0.9rem;
}

.export-btn:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.export-btn:hover i {
  color: white;
}

.export-btn i {
  color: #2563eb;
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* Template Gallery */
.template-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  /* margin: 0 1rem 1rem 1rem; */
}

.template-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.template-card:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.template-card h4 {
  color: #1e293b;
  margin-bottom: 0.3rem;
}

.template-card p {
  font-size: 0.8rem;
  color: #a0a3a8;
}
/* Active State - Jab template select ho */
.template-card.active {
    border-color: #2563eb;
    background: #eef2ff;
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.template-card.active h4 {
    color: #2563eb;
}

.template-card.active::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2563eb;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* Different colors for different templates */
.template-card[data-template="creative"].active {
    border-color: #7c3aed;
    background: #f3e8ff;
}

.template-card[data-template="creative"].active h4 {
    color: #7c3aed;
}

.template-card[data-template="tech"].active {
    border-color: #059669;
    background: #e6f7f0;
}

.template-card[data-template="tech"].active h4 {
    color: #059669;
}

.template-card[data-template="business"].active {
    border-color: #d97706;
    background: #fef3c7;
}

.template-card[data-template="business"].active h4 {
    color: #d97706;
}


/* ===== FOOTER WITH SHORTCUTS ===== */

.app-footer {
  background: #1e293b;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.02);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 2rem 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-section h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section h4 i {
  color: #195ae6;
  font-size: 1.1rem;
}

/* Shortcuts Section */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #475569;
}

.shortcut-key {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  font-family: monospace;
  font-size: 0.75rem;
  border: 1px solid #e2e8f0;
  min-width: 60px;
  text-align: center;
}

.shortcut-key kbd {
  background: transparent;
  font-family: monospace;
  font-weight: 600;
  color: #2563eb;
}

.shortcut-desc {
  color: #64748b;
}

/* Info Section */
.info-section p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.badge {
  background: #f1f5f9;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.75rem;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid #e2e8f0;
}

.badge i {
  color: #2563eb;
  font-size: 0.7rem;
}

/* Credits Section */
.credits-section p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.credits-section strong {
  color: #2563eb;
  font-weight: 600;
}

.day-info {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-link {
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: all 0.2s;
  border: 1px solid #e2e8f0;
}

.social-link:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-2px);
  border-color: #2563eb;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid  #e2e8f0;
  padding: 1rem 2rem;
  text-align: center;
  background: #1e293b;
}

.footer-bottom p {
  color: #f8fafc;
  font-size: 0.8rem;
  margin: 0;
}

.footer-bottom i {
  color: #ef4444;
  margin: 0 0.2rem;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-content {
    gap: 1.5rem;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
  }

  .shortcuts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-section h4 {
    justify-content: center;
  }

  .shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-links {
    justify-content: center;
  }

  .footer-badges {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 1rem;
  }

  .shortcuts-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    padding: 0.8rem 1rem;
    font-size: 0.7rem;
  }
}

/* ========== DAY 3 STYLES ========== */

/* Responsive Preview Modes */
.preview-desktop {
  max-width: 100%;
  margin: 0 auto;
}

.preview-tablet {
  max-width: 768px;
  margin: 0 auto;
}

.preview-mobile {
  max-width: 375px;
  margin: 0 auto;
}

/* Preview Toggle Buttons */
.preview-toggles {
  display: flex;
  gap: 0.5rem;
  background: #f1f5f9;
  border-radius: 40px;
  padding: 0.3rem;
}

.preview-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #64748b;
  transition: all 0.2s;
}

.preview-btn.active {
  background: white;
  color: #2563eb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.preview-btn i {
  font-size: 1rem;
}

/* Image Upload Area */
.upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
  margin: 1rem 0;
}

.upload-area:hover {
  border-color: #2563eb;
  background: #eef2ff;
}

.upload-area i {
  font-size: 2rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.upload-area p {
  color: #64748b;
  font-size: 0.9rem;
}

.upload-area .small {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.3rem;
}

/* Skill Bar Component */
.skill-item {
  margin-bottom: 1.2rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: #475569;
}

.skill-bar-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 20px;
  transition: width 0.3s ease;
}

/* Contact Component */
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem;
  border-radius: 12px;
  transition: background 0.2s;
}

.contact-item:hover {
  background: #f1f5f9;
}

.contact-item i {
  width: 24px;
  color: #2563eb;
  font-size: 1.2rem;
}

.contact-item a {
  color: #1e293b;
  text-decoration: none;
  flex: 1;
}

.contact-item a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Auto-save Indicator */
.auto-save-indicator {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-left: 1rem;
  width: 5rem;
}

.auto-save-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s infinite;
}

.auto-save-dot.saving {
  background: #f59e0b;
  animation: none;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Content Editable Focus */
[contenteditable="true"]:focus {
  outline: 2px solid #4f46e5;
  border-radius: 6px;
  padding: 4px;
}

/* Responsive */
@media (max-width: 1200px) {
  .builder {
    grid-template-columns: 220px 1fr 280px;
    gap: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .builder {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    height: auto;
    overflow-y: auto;
  }

  .panel {
    height: auto;
    max-height: 600px;
    overflow-y: scroll;
  }
}






/* ===== FINAL POLISHING ===== */

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Better Hover Effects */
.component:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.15);
}

.canvas-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading {
    background: linear-gradient(90deg, #f0f4fa 25%, #e2e8f0 50%, #f0f4fa 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #94a3b8;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.empty-state .btn {
    max-width: 200px;
}

/* Focus States for Accessibility */
button:focus-visible,
.component:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

/* Tooltip Styles */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #1e293b;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease;
}

.message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

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

/* Pulse Animation for Auto-save */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.auto-save-dot {
    animation: pulse 2s infinite;
}

.auto-save-dot.saving {
    animation: pulse 1s infinite;
}

/* Gradient Borders */
.canvas-item.selected {
    border: double 2px transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, #2563eb, #7c3aed);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* Glassmorphism Effect */
.panel {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Print Styles */
@media print {
    .app-header,
    .left-panel,
    .right-panel,
    footer,
    .item-controls,
    .preview-toggles {
        display: none !important;
    }
    
    .builder {
        display: block;
        padding: 0;
    }
    
    .canvas {
        border: none;
        padding: 0;
    }
    
    .canvas-item {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #ccc;
    }
}

/* Mobile Scroll Fix */
@media (max-width: 768px) {
    .left-panel .components-list { max-height: 600px; overflow-y: auto; }
    .left-panel .template-gallery { max-height: 200px; overflow-y: auto; padding: 1rem; }
    #canvasContainer { max-height: 400px; overflow-y: auto; }
}