/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Layout */
.pp-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.pp-sidebar {
    width: 280px;
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.pp-sidebar-header {
    padding: 30px 25px 20px;
    border-bottom: 1px solid #e9ecef;
}

.pp-sidebar-header h3 {
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pp-nav {
    padding: 0;
}

.pp-nav-link {
    display: block;
    padding: 12px 25px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.pp-nav-link:hover {
    background-color: #e9ecef;
    color: #212529;
    padding-left: 35px;
}

.pp-nav-link:last-child {
    border-bottom: none;
}

/* Active navigation state */
.pp-nav-active {
    background-color: #e9ecef !important;
    color: #212529 !important;
    padding-left: 35px !important;
    border-left: 3px solid #007bff;
}

/* Main content */
.pp-main {
    flex: 1;
    margin-left: 280px;
    padding: 0;
}

/* Mobile Sidebar Toggle Button */
.pp-sidebar-toggle {
    position: fixed;
    top: 15px;
    right: 20px;
    width: 44px;
    height: 44px;
    /* background-color: #007bff; */
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.pp-sidebar-toggle:hover {
    background-color: black;
    color: white;
    transform: scale(1.05);
}

.pp-sidebar-toggle:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Mobile Overlay */
.pp-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pp-sidebar-overlay.pp-sidebar-overlay-show {
    opacity: 1;
    visibility: visible;
}

/* Header */
.pp-header {
    padding: 60px 80px 40px;
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.pp-header h1 {
    font-size: 48px;
    font-weight: 300;
    color: #212529;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.pp-intro-text {
    font-size: 18px;
    color: #6c757d;
    line-height: 1.8;
    max-width: 800px;
}

/* WhatsApp Header */
.pp-whatsapp-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.pp-large-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

/* Sections */
.pp-section {
    padding: 50px 80px;
    border-bottom: 1px solid #f1f3f4;
}

.pp-section:last-child {
    border-bottom: none;
}

.pp-section h2 {
    font-size: 32px;
    font-weight: 300;
    color: #212529;
    margin-bottom: 30px;
    letter-spacing: -0.3px;
}

.pp-section > p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Subsections */
.pp-subsection {
    margin-bottom: 40px;
}

.pp-subsection:last-child {
    margin-bottom: 0;
}

.pp-subsection h3 {
    font-size: 20px;
    color: #495057;
    margin-bottom: 15px;
    font-weight: 500;
}

.pp-subsection p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.7;
}

.pp-subsection ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.pp-subsection li {
    font-size: 16px;
    color: #495057;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.pp-subsection li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6c757d;
    font-weight: bold;
}

/* Platform Grid */
.pp-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.pp-platform-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.pp-platform-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.pp-platform-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.pp-platform-content h3 {
    font-size: 18px;
    color: #212529;
    margin-bottom: 8px;
    font-weight: 500;
}

.pp-platform-content p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Unsubscribe Box */
.pp-unsubscribe-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
}

.pp-unsubscribe-box p {
    font-size: 16px;
    color: #495057;
    margin-bottom: 20px;
}

.pp-unsubscribe-button {
    display: inline-block;
    background-color: #dc3545;
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}

.pp-unsubscribe-button:hover {
    background-color: #c82333;
    text-decoration: none;
    color: white;
}

.pp-note {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    font-style: italic;
}

/* Important Note */
.pp-important-note {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
}

.pp-important-note p {
    margin: 0;
    color: #856404;
    font-size: 16px;
}

/* Timeline Box */
.pp-timeline-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.pp-timeline-box h3 {
    font-size: 18px;
    color: #495057;
    margin-bottom: 20px;
    font-weight: 500;
}

.pp-timeline-item {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #495057;
}

.pp-timeline-item:last-child {
    border-bottom: none;
}

.pp-timeline-item strong {
    color: #212529;
    font-weight: 600;
}

/* Contact Grid */
.pp-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.pp-contact-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
}

.pp-contact-item h3 {
    font-size: 18px;
    color: #495057;
    margin-bottom: 15px;
    font-weight: 500;
}

.pp-contact-item p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    line-height: 1.5;
}

.pp-contact-item strong {
    color: #495057;
    font-weight: 600;
}

.pp-contact-item a {
    color: #007bff;
    text-decoration: none;
}

.pp-contact-item a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pp-sidebar {
        width: 250px;
    }
    
    .pp-main {
        margin-left: 250px;
    }
    
    .pp-header,
    .pp-section {
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* Mobile Responsive with Sidebar Toggle */
@media (max-width: 768px) {
    /* Show hamburger button on mobile */
    .pp-sidebar-toggle {
        display: flex;
    }
    
    /* Layout changes for mobile */
    .pp-layout {
        flex-direction: column;
    }
    
    /* Hide sidebar by default on mobile and make it slide in */
    .pp-sidebar {
        position: fixed;
        top: 0;
        left: -280px; /* Hide sidebar initially */
        height: 100vh;
        width: 280px;
        background-color: #f8f9fa;
        border-right: 1px solid #e9ecef;
        padding-top: 70px; /* Account for toggle button */
        box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        overflow-y: auto;
    }
    
    /* Show sidebar when toggle is active */
    .pp-sidebar.pp-sidebar-show {
        left: 0; /* Slide in from left */
    }
    
    /* Main content adjustments for mobile */
    .pp-main {
        margin-left: 0 !important;
        padding: 0;
        width: 100%;
    }
    
    .pp-header {
        padding: 70px 25px 30px; /* Account for toggle button */
    }
    
    .pp-section {
        padding: 30px 25px;
    }
    
    .pp-header h1 {
        font-size: 36px;
    }
    
    .pp-section h2 {
        font-size: 28px;
    }
    
    .pp-whatsapp-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .pp-large-icon {
        width: 60px;
        height: 60px;
    }
    
    .pp-platform-grid {
        grid-template-columns: 1fr;
    }
    
    .pp-platform-card {
        flex-direction: column;
        text-align: center;
    }
    
    .pp-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pp-header,
    .pp-section {
        padding: 20px 15px;
    }
    
    .pp-header {
        padding-top: 70px; /* Account for toggle button */
    }
    
    .pp-header h1 {
        font-size: 28px;
    }
    
    .pp-section h2 {
        font-size: 24px;
    }
    
    .pp-intro-text {
        font-size: 16px;
    }
    
    .pp-nav-link {
        padding: 15px 20px;
    }
    
    .pp-nav-link:hover {
        padding-left: 30px;
    }
    
    .pp-sidebar-toggle {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 15px;
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    .pp-sidebar,
    .pp-sidebar-toggle {
        display: none;
    }
    
    .pp-main {
        margin-left: 0;
    }
    
    .pp-platform-card {
        border: 1px solid #333;
    }
    
    .pp-unsubscribe-box {
        border: 1px solid #333;
    }
}

/* Focus styles for accessibility */
.pp-nav-link:focus,
.pp-platform-card:focus,
.pp-unsubscribe-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection colors */
::selection {
    background: #007bff;
    color: white;
}

::-moz-selection {
    background: #007bff;
    color: white;
}

/* Scrollbar styling for sidebar */
.pp-sidebar::-webkit-scrollbar {
    width: 6px;
}

.pp-sidebar::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.pp-sidebar::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.pp-sidebar::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* Back Button Styles */
.pp-back-button-container {
    padding: 20px 80px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #f1f3f4;
}

.pp-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pp-back-button:hover {
    background-color: #e9ecef;
    color: #212529;
    border-color: #007bff;
    transform: translateX(-2px);
}

.pp-back-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.pp-back-button:active {
    transform: translateX(-1px);
}

/* Unsubscribe Modal Styles */
.pp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pp-modal-overlay.pp-modal-show {
    opacity: 1;
    visibility: visible;
}

.pp-modal {
    background: white;
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    position: relative;
}

.pp-modal-show .pp-modal {
    transform: translateY(0);
}

.pp-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.pp-modal-close:hover {
    color: #dc3545;
}

.pp-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.pp-modal-icon {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    padding: 8px;
}

.pp-modal-icon.whatsapp {
    /* background-color: #25d366; */
}

.pp-modal-icon.facebook {
    /* background-color: #1877f2; */
}

.pp-modal-icon.instagram {
    /* background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); */
}

.pp-modal-icon img {
    width: 100%;
    height: 100%;
    /* filter: brightness(0) invert(1); */
}

.pp-modal-title {
    flex: 1;
}

.pp-modal-title h3 {
    margin: 0 0 5px;
    color: #212529;
    font-size: 20px;
    font-weight: 600;
}

.pp-modal-title p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.pp-form-group {
    margin-bottom: 25px;
}

.pp-form-label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
}

.pp-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    color: #495057;
    transition: all 0.2s ease;
}

.pp-form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.pp-form-input::placeholder {
    color: #adb5bd;
}

.pp-form-example {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

.pp-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.pp-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.pp-modal-btn-cancel {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
}

.pp-modal-btn-cancel:hover {
    background-color: #e9ecef;
}

.pp-modal-btn-submit {
    background-color: #dc3545;
    color: white;
}

.pp-modal-btn-submit:hover {
    background-color: #c82333;
}

.pp-modal-btn-submit:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
}

/* Mobile Modal Responsive */
@media (max-width: 768px) {
    .pp-modal {
        padding: 30px 25px;
        margin: 20px;
    }
    
    .pp-modal-actions {
        flex-direction: column;
    }
    
    .pp-modal-btn {
        width: 100%;
    }
}

/* Success Alert Styles */
.pp-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.pp-alert.pp-alert-show {
    transform: translateX(0);
}

.pp-alert.pp-alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.pp-alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    float: right;
    margin-left: 15px;
    padding: 0;
}

/* Responsive Back Button */
@media (max-width: 1024px) {
    .pp-back-button-container {
        padding: 20px 50px 0;
    }
}

@media (max-width: 768px) {
    .pp-back-button-container {
        padding: 80px 25px 10px; /* Account for mobile hamburger button */
    }
    
    .pp-back-button {
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pp-back-button-container {
        padding: 80px 15px 10px;
    }
    
    .pp-back-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Animation for mobile sidebar */
@media (max-width: 768px) {
    .pp-sidebar {
        transform: translateX(-100%);
        left: 0;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .pp-sidebar.pp-sidebar-show {
        transform: translateX(0);
    }
}

/* Prevent body scroll when sidebar is open on mobile */
body.pp-sidebar-open {
    overflow: hidden;
}

@media (min-width: 769px) {
    body.pp-sidebar-open {
        overflow: auto;
    }
}

///////////////////////////////////////////////////////////////////

/* styles.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.editor-main-container {
  display: flex;
  height: 100vh;
  gap: 0;
}

.editor-form-container {
  width: 400px;
  background: #ffffff;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.editor-form-title {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
}

.editor-section {
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9ff;
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.editor-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-form-group {
  margin-bottom: 15px;
}

.editor-form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.editor-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e1e8ed;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background: white;
}

.editor-form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.editor-form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e1e8ed;
  border-radius: 6px;
  font-size: 14px;
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.editor-form-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.editor-color-picker {
  width: 50px;
  height: 35px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.editor-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.editor-checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.editor-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: #667eea;
}

.editor-checkbox-group .editor-form-label {
  margin-bottom: 0;
  color: #667eea;
  font-weight: 600;
  cursor: pointer;
}

.editor-preview-container {
  flex: 1;
  background: #f0f2f5;
  padding: 20px;
  overflow-y: auto;
}

.editor-preview-header {
  background: white;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editor-preview-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.editor-export-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.editor-export-btn:hover {
  transform: translateY(-2px);
}

/* Template Management Styles */
.template-management-section {
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.template-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.template-btn {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.save-btn {
  background: rgba(46, 204, 113, 0.9);
}

.save-btn:hover {
  background: rgba(46, 204, 113, 1);
  transform: translateY(-2px);
}

.new-btn {
  background: rgba(52, 152, 219, 0.9);
}

.new-btn:hover {
  background: rgba(52, 152, 219, 1);
  transform: translateY(-2px);
}

.saved-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 120px;
  overflow-y: auto;
}

.template-item {
  background: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 120px;
  justify-content: space-between;
}

.template-item:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.template-item.active {
  background: rgba(255, 255, 255, 1);
  border-color: #2ecc71;
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.template-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-delete {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 14px;
  padding: 2px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.template-delete:hover {
  background: rgba(231, 76, 60, 0.1);
  transform: scale(1.1);
}

.no-templates {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  text-align: center;
  padding: 10px;
  font-style: italic;
}

/* Modal Styles for Template Naming */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center;
}

.modal-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e8ed;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

.modal-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn-primary {
  background: #667eea;
  color: white;
}

.modal-btn-primary:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
}

.modal-btn-secondary {
  background: #95a5a6;
  color: white;
}

.modal-btn-secondary:hover {
  background: #7f8c8d;
  transform: translateY(-1px);
}

/* Email Template Styles */
.email-template-unique-wrapper {
  max-width: 600px;
  margin: 0 auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  padding: 20px;
  box-sizing: border-box;
}

.email-template-unique-container {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.email-template-unique-header {
  color: white;
  padding: 30px 40px;
  text-align: center;
  position: relative;
}

.email-template-unique-logo {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.email-template-unique-tagline {
  font-size: 14px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.email-template-unique-content {
  padding: 40px;
  line-height: 1.6;
  color: #333333;
}

.email-template-unique-greeting {
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 600;
}

.email-template-unique-body-text {
  font-size: 16px;
  margin-bottom: 25px;
  color: #555555;
}

.email-template-unique-highlight-box {
  border-left: 4px solid #ff6b6b;
  padding: 20px;
  margin: 25px 0;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.email-template-unique-highlight-text {
  font-weight: 600;
  color: #2c3e50;
  position: relative;
  z-index: 1;
}

.email-template-unique-cta-section {
  text-align: center;
  margin: 30px 0;
}

.email-template-unique-cta-button {
  display: inline-block;
  color: white;
  text-decoration: none;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.email-template-unique-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.email-template-unique-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.email-template-unique-feature-card {
  background: #f8f9ff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 2px solid transparent;
}

.email-template-unique-feature-card:hover {
  transform: translateY(-3px);
  border-color: #667eea;
}

.email-template-unique-feature-icon {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}

.email-template-unique-feature-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.email-template-unique-feature-desc {
  font-size: 14px;
  color: #666;
}

.email-template-unique-footer {
  color: white;
  padding: 30px 40px;
  text-align: center;
}

.email-template-unique-footer-content {
  margin-bottom: 20px;
}

.email-template-unique-social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.email-template-unique-social-link {
  display: inline-block;
  margin: 0 10px;
  color: white;
  text-decoration: none;
  font-size: 18px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.email-template-unique-social-link:hover {
  background-color: #667eea;
  transform: translateY(-2px);
}

.email-template-unique-unsubscribe {
  font-size: 12px;
  color: #95a5a6;
  margin-top: 20px;
}

.email-template-unique-unsubscribe a {
  color: #667eea;
  text-decoration: none;
}

.email-template-unique-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
  margin: 30px 0;
  border: none;
}

/* Social media configuration styles */
.social-icon-config {
  margin-bottom: 15px;
  padding: 15px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.social-icon-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icon-input {
  width: 60px;
  text-align: center;
  font-size: 16px;
}

.social-link-input {
  flex: 1;
}

.social-icon-config .editor-form-label {
  margin-bottom: 8px;
  color: #667eea;
  font-weight: 600;
}

.logo-preview {
  margin-top: 10px;
  padding: 10px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  text-align: center;
}

.logo-preview img {
  display: block;
  margin: 0 auto 10px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.remove-logo-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-logo-btn:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

input[type="file"].editor-form-input {
  padding: 8px;
  border: 2px dashed #e1e8ed;
  background: #f8f9ff;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"].editor-form-input:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

input[type="file"].editor-form-input:focus {
  border-style: solid;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 768px) {
  .editor-main-container {
    flex-direction: column;
    height: auto;
  }

  .editor-form-container {
    width: 100%;
    height: auto;
    max-height: 50vh;
  }

  .editor-preview-container {
    min-height: 50vh;
  }
}
