:root {
  --primary-color: #270089;
  --radius: 0px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Theme: Modern (Default) */
.theme-modern {
  background: #ffffff;
}

.theme-modern .presentation-header {
  background: var(--primary-color);
  color: white;
}

/* Theme: Bold */
.theme-bold {
  background: #1a1a1a;
  color: #ffffff;
}

.theme-bold .presentation-header {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.theme-bold .block {
  background: #2a2a2a;
  color: #ffffff;
}

/* Theme: Classic */
.theme-classic {
  background: #f8f9fa;
}

.theme-classic .presentation-header {
  background: #2c3e50;
  color: white;
}

/* Layout */
.presentation-container {
  max-width: 1000px;
  margin: 0 auto;
}

.presentation-header {
  padding: 60px 40px;
  text-align: center;
  margin-bottom: 40px;
}

.presentation-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.client-name {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Content Blocks */
.content-blocks {
  padding: 0 40px 40px;
}

.block {
  margin-bottom: 60px;
  animation: fadeIn 0.6s ease-in;
  background: #f6f6f6;
  border-radius: var(--radius);
  padding: 2em;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Text Blocks */
.block-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.theme-bold .block-text h2 {
  color: #f5576c;
}

.text-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.theme-bold .text-content {
  color: #ddd;
}

/* Image Blocks */
.block-image {
  text-align: center;
}

.block-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.caption {
  margin-top: 15px;
  font-size: 0.95rem;
  color: #777;
  font-style: italic;
}

.theme-bold .caption {
  color: #aaa;
}

/* Video Blocks */
.block-video {
  text-align: center;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* PDF Blocks */
.block-pdf h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.block-pdf iframe {
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Footer */
.presentation-footer {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
}

.theme-bold .presentation-footer {
  border-top-color: #444;
}

.logo-wrapper {
    padding: 2em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .presentation-header {
    padding: 40px 20px;
  }
  
  .presentation-header h1 {
    font-size: 1.8rem;
  }
  
  .content-blocks {
    padding: 0 20px 40px;
  }
  
  .block-text h2 {
    font-size: 1.5rem;
  }
  
  .meta-ad-container {
    max-width: 100%;
  }
}

/* Meta Ad Preview Styles */
.block-meta-ad {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.meta-ad-container {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.theme-bold .meta-ad-container {
  background: #fff;
  color: #000;
}

/* Ad Header */
.ad-header {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 10px;
}

.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.ad-info {
  flex: 1;
}

.page-name {
  font-weight: 600;
  font-size: 15px;
  color: #050505;
}

.sponsored {
  font-size: 13px;
  color: #65676b;
}

.ad-menu {
  font-size: 20px;
  color: #65676b;
  cursor: pointer;
}

/* Post Text */
.ad-post-text {
  padding: 0 12px 12px;
  font-size: 15px;
  line-height: 1.4;
  color: #050505;
  white-space: pre-wrap;
}

/* Ad Image */
.ad-image {
  width: 100%;
  background: #f0f2f5;
}

.ad-image img {
  width: 100%;
  display: block;
}

/* Ad Content */
.ad-content {
  padding: 12px;
  background: #f0f2f5;
  border-top: 1px solid #e4e6eb;
}

.ad-headline {
  font-size: 16px;
  font-weight: 600;
  color: #050505;
  margin-bottom: 4px;
}

.ad-description {
  font-size: 14px;
  color: #65676b;
  margin-bottom: 4px;
}

.ad-link {
  font-size: 13px;
  color: #65676b;
  text-transform: uppercase;
}

/* Ad Actions */
.ad-actions {
  display: flex;
  border-top: 1px solid #e4e6eb;
  padding: 4px 12px;
}

.action-btn {
  flex: 1;
  padding: 8px;
  background: none;
  border: none;
  color: #65676b;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.action-btn:hover {
  background: #f2f3f5;
  border-radius: 4px;
}

/* Instagram Format */
.meta-ad-container.instagram .ad-content {
  background: #fff;
  border-top: none;
}

/* Feedback Buttons */
.feedback-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #eee;
}

.btn-feedback {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-approve {
  background: #42b983;
  color: white;
}

.btn-approve:hover {
  background: #369970;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-changes {
  background: #f0ad4e;
  color: white;
}

.btn-changes:hover {
  background: #ec971f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Dropbox Preview Hint */
.dropbox-hint {
  margin-top: 15px;
  padding: 12px;
  background: #e7f3ff;
  border-left: 4px solid #2196F3;
  border-radius: var(--radius);
  font-size: 14px;
  color: #1976D2;
}

.theme-bold .dropbox-hint {
  background: rgba(33, 150, 243, 0.1);
}

/* Feedback Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-content h3 {
  margin-bottom: 20px;
  color: #333;
}

.modal-content .form-group {
  margin-bottom: 20px;
}

.modal-content label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #555;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 14px;
}

.modal-content textarea {
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 25px;
}

.btn-cancel {
  padding: 10px 20px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
}

.btn-cancel:hover {
  background: #5a6268;
}

.btn-submit {
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
}

.btn-submit:hover {
  background: #0056b3;
}