
/* Overall Layout */
body {
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
}

/* Headings */
h2 {
    font-weight: 600;
    color: #343a40;
}
/* navbar */
    /* Navbar styling */
    .navbar {
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Dropdown styling */
    .dropdown-menu {
        animation: fadeIn 0.2s ease-out;
    }
    
    .dropdown-item {
        transition: all 0.2s ease;
        border-radius: 0.25rem;
        margin: 0.15rem 0;
    }
    
    .dropdown-item:hover {
        background-color: #f8f9fa;
        transform: translateX(3px);
    }
    
    /* Offcanvas styling */
    .offcanvas {
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    /* Animation */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Avatar styling */
    .avatar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    
    .bg-gradient-primary {
        background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    }

    .avatar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .avatar-sm {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    /* Navbar link styles */
    .navbar-nav .nav-link {
        color: rgba(20, 1, 1, 0.85) !important;
        transition: color 0.3s, background-color 0.3s;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: #ffffff;
        background-color: rgba(17, 4, 4, 0.082);
        border-radius: 0.5rem;
    }

    .navbar-nav .nav-link.active {
        color: #1b1818;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 0.5rem;
    }

    /* Offcanvas menu link styles */
    .offcanvas .nav-link {
        transition: color 0.3s, background-color 0.3s;
        border-radius: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .offcanvas .nav-link:hover,
    .offcanvas .nav-link:focus {
        background-color: #e9f5ff;
        color: #0d6efd;
    }

    .offcanvas .nav-link.active {
        background-color: #d0ebff;
        color: #0b5ed7;
    }


.lead {
    color: #6c757d;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: 600;
    background-color: transparent;
    border-bottom: none;
    font-size: 1.1rem;
}

/* Custom Card Headers */
.bg-primary, .bg-success, .bg-info {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

/* Buttons */
.btn {
    border-radius: 0.6rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #4e73df, #224abe);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #224abe, #1d3d9b);
}

.btn-success {
    background: linear-gradient(135deg, #1cc88a, #17a673);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #17a673, #138d63);
}

.btn-info {
    background: linear-gradient(135deg, #36b9cc, #2c9faf);
    border: none;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2c9faf, #257f8a);
}

/* Quick Actions Card */
.card-body a {
    font-size: 0.95rem;
}

/* Row Margin */
.mt-4 {
    margin-top: 2rem !important;
}

/* Animations */
a.btn {
    transition: transform 0.3s ease;
}

a.btn:hover {
    transform: scale(1.05);
}

/* Responsive Enhancements */
@media (max-width: 767px) {
    .card {
        margin-bottom: 1.5rem;
    }
}



/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* hero */
/* Base Styles */
:root {
    --primary: #4361ee;
    --primary-light: #e0e7ff;
    --primary-dark: #3a0ca3;
    --secondary: #7209b7;
    --success: #2ecc71;
    --info: #00b4d8;
    --warning: #f9c74f;
    --danger: #e63946;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --gray-light: #e9ecef;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
  }
  
  /* Typography */
  .display-3, .display-4, .display-5 {
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
  }
  
  .lead {
    font-size: 1.25rem;
    font-weight: 400;
  }
  
  /* Hero Section */
  .hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
  }
  
  .hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 1;
  }
  
  /* Feature Cards */
  .feature-card-icon {
    width: 80px;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
  }
  
  .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
  }
  
  .card:hover .feature-card-icon {
    transform: scale(1.1);
  }
  
  /* Benefit Icons */
  .benefit-icon-wrapper {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
  
  /* Pricing Card */
  .pricing-card {
    overflow: hidden;
    transition: transform 0.3s ease;
  }
  
  .pricing-card:hover {
    transform: translateY(-5px);
  }
  
  .bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  }
  
  /* Testimonials */
  .testimonial-card {
    transition: transform 0.3s ease;
  }
  
  .testimonial-card:hover {
    transform: translateY(-5px);
  }
  
  /* CTA Section */
  .cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
  }
  
  .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd' opacity='0.05'%3E%3Cg fill='%23ffffff' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
  
  /* Buttons */
  .btn {
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
  }
  
  .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
  }
  
  .btn-outline-light:hover {
    transform: translateY(-2px);
  }
  
  /* Animations */
  [data-aos] {
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .hero-section {
      text-align: center;
    }
    
    .display-3 {
      font-size: 2.5rem;
    }
    
    .pricing-card .row {
      flex-direction: column;
    }
    
    .pricing-card .col-md-6 {
      width: 100%;
    }
    
    .pricing-card .border-start {
      border-left: none !important;
      border-top: 1px solid var(--gray-light) !important;
    }
  }
  
  /* Utility Classes */
  .rounded-4 {
    border-radius: 1rem !important;
  }
  
  .shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important;
  }
  
  .shadow {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
  }
  
  .shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
  }
  
  .hover-shadow-lg:hover {
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
  }
  
  .transition-all {
    transition: all 0.3s ease;
  }
  
  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
  }
/* Tables */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

/* WYSIWYG editor */
.tox-tinymce {
    border-radius: 0.25rem !important;
}

/* Stats cards */
.stat-card {
    border-left: 4px solid #0d6efd;
}

.stat-card .display-4 {
    font-size: 2.5rem;
    font-weight: 300;
}

/* List groups */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

/* detal aasn monitor */

.email-preview {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 1rem 0;
    padding: 1.5rem;
    background: white;
}
.campaign-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 4px solid var(--bs-primary);
}
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.send-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.campaign-meta {
    font-size: 0.9rem;
    color: #6c757d;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}
.badge-lg {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
}

/* footer */
.hover-link:hover {
    text-decoration: underline;
    color: #ffcc00 !important; /* Custom hover color */
}
.footer {
    background-color: #343a40; /* Dark background */
    color: #f8f9fa;
}
.footer a {
    color: #f8f9fa;
}
.footer a:hover {
    color: #ffcc00; /* Bright color for hover effect */
}

/* site seting */
.settings-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.settings-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.settings-header {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header-content {
    flex: 1;
}

.settings-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.settings-subtitle {
    opacity: 0.9;
    margin-bottom: 0;
}

.settings-header-icon {
    font-size: 3rem;
    opacity: 0.2;
}

.settings-body {
    padding: 2rem;
}

.settings-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.current-logo img,
.current-favicon img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
}

.current-favicon img {
    max-width: 32px;
    max-height: 32px;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.btn-save {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .settings-header {
        flex-direction: column;
        text-align: center;
    }
    
    .settings-header-icon {
        margin-top: 1rem;
        font-size: 2rem;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .settings-actions .btn {
        width: 100%;
    }
}
/* smtp */
.smtp-settings-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.smtp-settings-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.smtp-settings-header {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.smtp-settings-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.smtp-settings-subtitle {
    opacity: 0.9;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.smtp-settings-body {
    padding: 1.5rem;
}

.smtp-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.smtp-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-toggle {
    position: relative;
}

.password-toggle .toggle-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.btn-save {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .smtp-settings-container {
        padding: 0 0.75rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}
/* template */
/* Email Template Form Styles */
.email-preview {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #212529;
}

.email-preview h1, 
.email-preview h2, 
.email-preview h3, 
.email-preview h4, 
.email-preview h5, 
.email-preview h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.email-preview p {
    margin-bottom: 1rem;
}

.email-preview a {
    color: #0d6efd;
    text-decoration: underline;
}


/* Template variables help */
#template-variables {
    transition: all 0.3s ease;
}

#template-variables code {
    background-color: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* SMPT */

.smtp-settings-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.smtp-settings-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.smtp-settings-header {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.smtp-settings-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.smtp-settings-subtitle {
    opacity: 0.9;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.smtp-settings-body {
    padding: 1.5rem;
}

.smtp-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.smtp-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-toggle {
    position: relative;
}

.password-toggle .toggle-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.btn-save {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-test {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    animation: spin 1s linear infinite;
}

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

@media (max-width: 768px) {
    .smtp-settings-container {
        padding: 0 0.75rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* privacy policy */
.privacy-policy-section {
    background: linear-gradient(135deg, #f8fafc, #e0e7ff);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.privacy-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.privacy-subtitle {
    font-size: 1.1rem;
    color: #64748b;
}
.privacy-content {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #334155;
    font-size: 1rem;
    line-height: 1.8;
}
.privacy-content h5 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 600;
    font-size: 1.4rem;
}
.privacy-content h6 {
    font-weight: 600;
    color: #334155;
}
.privacy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.privacy-content ul li {
    margin-bottom: 0.5rem;
}
.privacy-content a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s;
}
.privacy-content a:hover {
    color: #4f46e5;
    text-decoration: underline;
}
.privacy-content p {
    margin-bottom: 1.5rem;
}
.contact-info {
    background-color: #f8fafc !important;
    border-left: 4px solid #6366f1;
}

@media (max-width: 768px) {
    .privacy-title {
        font-size: 2rem;
    }
    .privacy-content {
        padding: 1.5rem;
    }
}

/* T&C */
.terms-section {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.terms-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.terms-subtitle {
    font-size: 1.1rem;
    color: #64748b;
}
.terms-content {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    color: #334155;
    font-size: 1rem;
    line-height: 1.8;
}
.terms-content h5 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 600;
    font-size: 1.4rem;
}
.terms-content h6 {
    font-weight: 600;
    color: #334155;
}
.terms-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.terms-content ul li {
    margin-bottom: 0.5rem;
}
.terms-content a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s;
}
.terms-content a:hover {
    color: #4f46e5;
    text-decoration: underline;
}
.terms-content p {
    margin-bottom: 1.5rem;
}
.contact-info {
    background-color: #f8fafc !important;
    border-left: 4px solid #6366f1;
}

@media (max-width: 768px) {
    .terms-title {
        font-size: 2rem;
    }
    .terms-content {
        padding: 1.5rem;
    }
}

/* progess style  */
.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

.gauge {
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.gauge-body {
    width: 100%;
    height: 0;
    padding-bottom: 50%;
    position: relative;
    border-top-left-radius: 100% 200%;
    border-top-right-radius: 100% 200%;
    overflow: hidden;
    background-color: #f5f5f5;
}

.gauge-fill {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4e73df;
    transform-origin: center top;
    transform: rotate(0.5turn);
    transition: transform 0.5s ease-out;
}

.gauge-cover {
    width: 75%;
    height: 150%;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(0,0,0,0.2) inset;
}

.gauge-label {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
    color: #6c757d;
}

.activity-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.activity-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4e73df;
}

.activity-content {
    padding-left: 15px;
    border-left: 2px solid #e3e6f0;
}
/* action button  */
/* Custom styles for better mobile appearance */
@media (max-width: 576px) {
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .btn-group .btn:not(:first-child) {
        margin-left: -1px;
    }
    
    .flex-wrap {
        gap: 0.5rem !important;
    }
}

/* Ensure buttons don't wrap awkwardly */
.btn-group {
    flex-wrap: nowrap;
}

/* Tooltip styling */
.tooltip {
    font-size: 0.8rem;
}

.hover-link {
    transition: all 0.3s ease;
    opacity: 0.8;
}

.hover-link:hover {
    opacity: 1;
    color: #ffffff !important;
    transform: translateX(3px);
}


.hover-link:hover .bi {
    transform: scale(1.1);
}

  .hover-transform {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .hover-transform:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    }
    .template-thumbnail:hover i {
        animation: pulse 1.5s infinite;
    }
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }
    .empty-state {
        max-width: 400px;
        margin: 0 auto;
    }

    .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.template-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.badge {
    font-size: 0.7rem;
}

.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

.email-preview-container {
    background: #f8f9fa;
    padding: 20px;
    min-height: 1200px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-preview-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 600px !important;
    width: 100%;
    transition: all 0.3s ease;
}

.email-template-content {
    padding: 1rem !important;
    line-height: 1.6;
}

/* Mobile view */
.email-preview-wrapper.mobile-view {
    max-width: 400px;
    border: 2px solid #e9ecef;
}

.email-preview-wrapper.desktop-view {
    max-width: 800px;
}

/* Ensure template content looks good */
.email-template-content h1,
.email-template-content h2,
.email-template-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.email-template-content p {
    margin-bottom: 1rem;
    color: #333;
}

.email-template-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.email-template-content th,
.email-template-content td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.email-template-content th {
    background: #f8f9fa;
    font-weight: 600;
}

.email-template-content .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    margin: 0.25rem;
}

.email-template-content img {
    max-width: 100%;
    height: auto;
}

/* Card styling */
.card {
    border-radius: 12px;
}

.btn {
    border-radius: 8px;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
}

.stat-card {
    padding: 10px;
}

.stat-card h3 {
    font-weight: 700;
}

.empty-state {
    max-width: 300px;
    margin: 0 auto;
}

.table th {
    border-top: none;
    font-weight: 600;
    font-size: 0.875rem;
    color: #6c757d;
}

.card {
    border-radius: 12px;
}

.btn {
    border-radius: 6px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}