/* Reset and Base Styles - Updated: 2025-01-10 03:45:00 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    overflow-y: auto;
    /* Allow vertical scroll */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    overflow-y: auto;
    /* Allow vertical scroll */
}

/* Admin Container */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #f5f7fa;
    border-right: 1px solid #e0e0e0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Prominent Dashboard Button */
.dashboard-nav-button {
    background: white;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.dashboard-nav-button.active {
    background: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.dashboard-nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dashboard-nav-button.active:hover {
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.dashboard-button-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    gap: 16px;
}

.dashboard-button-icon {
    width: 40px;
    height: 40px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #4CAF50;
    flex-shrink: 0;
}

.dashboard-nav-button.active .dashboard-button-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.dashboard-button-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dashboard-button-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.dashboard-nav-button.active .dashboard-button-title {
    color: white;
}

.dashboard-button-subtitle {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.dashboard-nav-button.active .dashboard-button-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Navigation Menu */
.sidebar-nav {
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    display: block;
    margin-bottom: 8px;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
    gap: 12px;
}

.nav-item a i {
    width: 20px;
    font-size: 16px;
    color: #6c757d;
    text-align: center;
    flex-shrink: 0;
}

.nav-item a:hover {
    background: white;
    color: #4CAF50;
}

.nav-item a:hover i {
    color: #4CAF50;
}

/* Keep navigation constant - no active states for nav items */
.nav-item.active a {
    background: white;
    color: #495057;
    font-weight: 500;
}

.nav-item.active a i {
    color: #6c757d;
}

/* User Profile Section */
.sidebar-user-profile {
    display: flex;
    align-items: center;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 24px;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-profile-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.user-profile-info {
    flex: 1;
    min-width: 0;
}

.user-profile-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile-role {
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile-menu {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.user-profile-menu:hover {
    background: #f0f0f0;
    color: #4CAF50;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background: #f5f5f5;
    /* Visual indicator for scrolling area */
    border-left: 3px solid #4CAF50;
    padding-left: 10px;
}

/* Header - Static at top */
.header {
    background: white;
    padding: 17px 22px;
    /* Reduced by 30% */
    border-bottom: 3px solid #4CAF50;
    /* Visual indicator for static header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Shadow to show it's floating */
}

.page-title {
    font-size: 20px;
    /* Reduced by 30% */
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
    /* Reduced by 30% */
}

.page-subtitle {
    color: #666;
    font-size: 11px;
    /* Reduced by 30% */
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    /* Reduced by 30% */
}

.user-avatar {
    width: 28px;
    /* Reduced by 30% */
    height: 28px;
    /* Reduced by 30% */
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    /* Reduced by 30% */
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #333;
}

.user-role {
    font-size: 14px;
    color: #666;
}

.logout-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #d32f2f;
}

/* Content Sections */
.content-section {
    display: none;
    padding: 32px;
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.section-header p {
    color: #666;
    font-size: 16px;
}

/* Create Message Container - Header static, content scrollable */
.create-message-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    /* Further reduced for easier viewing */
    /* Removed fixed height to allow natural scrolling */
    min-height: 100vh;
    /* Ensure container takes full viewport height */
    padding: 20px;
    /* Add padding for better spacing */
}

.message-form-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    /* Remove padding to control layout */
    /* Removed fixed height constraints to allow natural scrolling */
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    /* Set fixed height for container */
}

/* Removed custom scrollbars - using natural page scrolling */

.form-header {
    margin-bottom: 12px;
    /* Further reduced for easier viewing */
    padding: 24px 24px 12px 24px;
    /* Add padding to header */
    background: white;
    border-radius: 12px 12px 0 0;
    /* Rounded top corners */
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #e0e0e0;
    /* Separator line */
}

.form-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Additional styles handled in main .message-form rule */
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    /* Added compact spacing */
}

/* Ensure proper spacing for scrolling */
.message-form {
    padding: 24px;
    /* Add padding to form content */
    padding-bottom: 20px;
    /* Extra padding at bottom for scrolling */
    overflow-y: auto;
    /* Make form content scrollable */
    flex: 1;
    /* Take remaining space */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #4CAF50 #f1f1f1;
    /* Firefox */
    scroll-behavior: smooth;
    /* Smooth scrolling */
}

/* Custom scrollbar for form content */
.message-form::-webkit-scrollbar {
    width: 8px;
}

.message-form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.message-form::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 4px;
}

.message-form::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    /* Reduced for easier viewing */
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px 14px;
    /* Reduced for easier viewing */
    border: 2px solid #4CAF50;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #45a049;
    background: white;
}

.upload-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.upload-btn:hover {
    background: #45a049;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 12px;
    /* Further reduced for easier viewing */
}

.preview-btn {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #4CAF50;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-btn:hover {
    background: #4CAF50;
    color: white;
}

/* Message Preview Panel - Static (No Scrolling) */
.message-preview-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    /* Remove padding to control layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    height: calc(100vh - 200px);
    /* Match form panel height */
    position: sticky;
    /* Keep preview static */
    top: 0;
}

/* Preview panel is static - no scrollbar needed */

/* Workshop Styles */
.workshop-container {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.workshop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.workshop-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.workshop-title p {
    color: #666;
    font-size: 16px;
}

.workshop-actions {
    display: flex;
    gap: 16px;
}

.message-list-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.message-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.message-list-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.list-actions {
    display: flex;
    gap: 12px;
}

.message-list {
    max-height: 600px;
    overflow-y: auto;
}

.message-item {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-item:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

.message-item:last-child {
    border-bottom: none;
}

.message-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 12px;
}

.message-info {
    flex: 1;
}

.message-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.message-date {
    font-size: 12px;
    color: #666;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.message-item-content {
    flex: 1;
}

/* Message title removed from saved message display */

.message-meta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.message-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.message-status i {
    color: #4CAF50;
}

.message-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: #f5f5f5;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #e74c3c;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 24px;
    font-size: 16px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 24px 24px 16px 24px;
    /* Add padding to header */
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    background: white;
    border-radius: 12px 12px 0 0;
    /* Rounded top corners */
    position: sticky;
    top: 0;
    z-index: 10;
}

.preview-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.toggle-preview-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-preview-btn:hover {
    background: #45a049;
}

/* Kite Preview Card Structure - Scrollable with Static Buttons */
.preview-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    width: 375px;
    height: 575px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: none;
    min-height: 0; /* Important for flex children to respect overflow */
}

/* Kite Card Header - Static at top */
.card-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 20px 20px 20px 20px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.business-icon {
    width: 32px;
    height: 32px;
    background: #4CAF50;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.business-icon-text {
    font-size: 16px;
}

.business-info {
    flex: 1;
}

.business-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.message-date {
    font-size: 12px;
    color: #666;
}

/* Business Name Header - Static at top */
.business-name-header {
    flex-shrink: 0;
    padding: 20px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.business-header-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.business-logo {
    width: 32px;
    height: 32px;
    background: transparent;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.business-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.business-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

.business-info-top {
    flex: 1;
}

.business-name-top {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.message-date-top {
    font-size: 12px;
    color: #666;
}

/* Message Scroll Container - Scrollable area */
.message-scroll-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0; /* Important for flex children to respect overflow */
    scrollbar-width: thin;
    scrollbar-color: #4CAF50 #f1f1f1;
    scroll-behavior: smooth;
}

.message-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.message-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.message-scroll-container::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 3px;
}

.message-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

.message-scroll-content {
    padding: 20px;
}

/* Kite Message Content - Scrollable */
.message-content {
    width: 100%;
    box-sizing: border-box;
}

.message-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 12px;
}

.message-text {
    font-size: 14px;
    color: #666;
    line-height: 20px;
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Kite Action Buttons Container - Static at bottom */
.action-buttons-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    padding: 20px;
    background: white;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.link-button {
    background: #4CAF50;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    flex: 1;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-button:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.terms-button {
    background: #666;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    flex: 1;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-button:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Custom scrollbar for kite message content */
.message-content::-webkit-scrollbar {
    width: 6px;
}

/* Dashboard Tabs Styles */
.dashboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #333;
}

.tab-btn.active {
    background: #4CAF50;
    color: white;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.tab-btn i {
    font-size: 16px;
}

.dashboard-content {
    transition: opacity 0.3s ease;
}

.dashboard-content.hidden {
    display: none;
}

/* Analytics Dashboard Styles */
.analytics-section {
    margin-top: 32px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.analytics-section .section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.analytics-section .section-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.analytics-section .section-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.message-analytics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.analytics-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.analytics-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.refresh-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.refresh-btn:hover {
    background: #45a049;
}

.analytics-content {
    min-height: 200px;
}

.message-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4CAF50 #f1f1f1;
}

.message-campaign-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s ease;
}

.message-campaign-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.campaign-header h5 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.campaign-date {
    font-size: 12px;
    color: #666;
}

.campaign-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.metric-value {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.campaign-performance {
    margin-top: 12px;
}

.performance-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.performance-bar .bar {
    height: 100%;
    transition: width 0.3s ease;
}

.performance-bar .open-rate {
    background: #4CAF50;
}

.performance-bar .decline-rate {
    background: #f44336;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.summary-item .label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.summary-item .value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.loading-state,
.empty-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.loading-state i,
.empty-state i,
.error-state i {
    font-size: 24px;
    margin-bottom: 12px;
    color: #4CAF50;
}

.error-state i {
    color: #f44336;
}

.loading-state h4,
.empty-state h4,
.error-state h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.loading-state p,
.empty-state p,
.error-state p {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px 0;
}

.retry-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.retry-btn:hover {
    background: #45a049;
}

/* Responsive Design for Analytics */
@media (max-width: 1024px) {
    .message-analytics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

@media (max-width: 768px) {
    .analytics-section {
        padding: 16px;
        margin-top: 24px;
    }

    .campaign-metrics {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .campaign-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Dashboard Tabs Responsive */
    .dashboard-tabs {
        flex-direction: column;
        gap: 4px;
    }

    .tab-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .tab-btn i {
        font-size: 14px;
    }
}

.message-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.message-content::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 3px;
}

.message-content::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

/* Inbox Styles */
.inbox-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.message-list {
    display: flex;
    flex-direction: column;
}

.message-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.message-item:hover {
    background: #f8f8f8;
}

.message-item.unread {
    background: #f0f8f0;
    border-left: 4px solid #4CAF50;
}

.message-avatar {
    width: 48px;
    height: 48px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 16px;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.message-header h4 {
    font-weight: 600;
    color: #333;
}

.message-time {
    font-size: 14px;
    color: #666;
}

.message-content p {
    color: #666;
    font-size: 14px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 36px;
    height: 36px;
    background: #4CAF50;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.stat-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.stat-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 4px;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.stat-change.positive {
    background: #e8f5e8;
    color: #2e7d32;
}

/* Billing Styles */
.billing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.billing-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stripe-card-element {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
    background: white;
}

.card-errors {
    color: #fa755a;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.payment-form-container {
    margin-top: 16px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.card-brand {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.payment-amount-section {
    margin-bottom: 20px;
}

.payment-amount-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.amount-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.currency-symbol {
    padding: 12px 16px;
    background: #f8f9fa;
    color: #666;
    font-weight: 600;
    border-right: 1px solid #e0e0e0;
}

.amount-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.amount-input:focus {
    border-color: #4CAF50;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.form-row input[type="checkbox"] {
    cursor: pointer;
}

.billing-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.plan-details h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.plan-details p {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 12px;
}

.plan-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.plan-status.active {
    background: #e8f5e8;
    color: #2e7d32;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-method i {
    font-size: 20px;
    color: #4CAF50;
}

.billing-date {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Pricing Plans Styles */
.pricing-plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.pricing-plan-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pricing-plan-featured {
    border: 2px solid #4CAF50;
    transform: scale(1.05);
}

.pricing-plan-featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: #4CAF50;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.plan-price-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.plan-price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #4CAF50;
}

.plan-price-period {
    font-size: 18px;
    color: #666;
    margin-left: 4px;
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
    min-height: 280px;
}

.plan-features li {
    padding: 12px 0;
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-features li i {
    color: #4CAF50;
    font-size: 16px;
    flex-shrink: 0;
}

.btn-plan {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-plan-free {
    background: #f5f5f5;
    color: #333;
}

.btn-plan-free:hover {
    background: #e0e0e0;
}

.btn-plan-pro {
    background: #4CAF50;
    color: white;
}

.btn-plan-pro:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-plan-enterprise {
    background: #2c3e50;
    color: white;
}

.btn-plan-enterprise:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.btn-plan:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Stripe Buy Button Container */
.stripe-buy-button-container {
    width: 100%;
    margin-top: 8px;
}

.stripe-buy-button-container stripe-buy-button {
    width: 100%;
    display: block;
}

/* Style the Stripe buy button to match our design */
.stripe-buy-button-container iframe {
    width: 100% !important;
    border: none !important;
    border-radius: 8px !important;
}

@media (max-width: 768px) {
    .pricing-plans-container {
        grid-template-columns: 1fr;
    }
    
    .pricing-plan-featured {
        transform: scale(1);
    }
    
    .pricing-plan-featured:hover {
        transform: translateY(-4px);
    }
}

/* Profile Styles */
.profile-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 32px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
}

/* Settings Styles */
.settings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.settings-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.settings-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    font-weight: 500;
    color: #333;
}

.setting-item input {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    width: 200px;
}

/* Buttons */
.btn-primary {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .profile-preview-card {
        width: 375px;
        height: 575px;
        margin: 0 auto;
    }
}

.main-content {
    margin-left: 280px;
}

.create-message-container {
    grid-template-columns: 1fr;
    height: auto;
}

.preview-card {
    width: 100%;
    max-width: 375px;
    height: 575px;
}
}

@media (max-width: 768px) {

    .profile-form-panel,
    .profile-preview-panel {
        padding: 20px;
    }

    .profile-preview-card {
        width: 375px;
        height: 575px;
        padding: 20px;
        margin: 0 auto;
    }

    .preview-business-name {
        font-size: 18px;
    }

    .preview-logo {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

.sidebar.open {
    transform: translateX(0);
}

.main-content {
    margin-left: 0;
}

.header {
    padding: 16px 20px;
}

.content-section {
    padding: 20px;
}

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

.billing-container,
.settings-container {
    grid-template-columns: 1fr;
}

.create-message-container {
    grid-template-columns: 1fr;
    gap: 10px;
    /* Further reduced for easier viewing */
}

.message-form-panel,
.message-preview-panel {
    padding: 20px;
}

.preview-card {
    width: 100%;
    max-width: 375px;
    height: 575px;
}
}

/* Customers Section Styles */
.customers-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.customers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.customers-search {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-input {
    padding: 10px 16px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    min-width: 300px;
}

.search-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.customers-table {
    overflow-x: auto;
}

.customers-table table {
    width: 100%;
    border-collapse: collapse;
}

.customers-table th,
.customers-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.customers-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.customers-table td {
    font-size: 14px;
    color: #6c757d;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 40px;
    height: 40px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.status {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.status.active {
    background-color: #d4edda;
    color: #155724;
}

.status.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.btn-action {
    background: none;
    border: none;
    padding: 8px;
    margin: 0 4px;
    border-radius: 6px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background-color: #f8f9fa;
    color: #4CAF50;
}

@media (max-width: 768px) {

    .profile-form-panel,
    .profile-preview-panel {
        padding: 20px;
    }

    .profile-preview-card {
        width: 375px;
        height: 575px;
        padding: 20px;
        margin: 0 auto;
    }

    .preview-business-name {
        font-size: 18px;
    }

    .preview-logo {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

.customers-search {
    flex-direction: column;
}

.search-input {
    min-width: unset;
    width: 100%;
}

.customers-table {
    font-size: 12px;
}

.customers-table th,
.customers-table td {
    padding: 8px 12px;
}

.customer-info {
    gap: 8px;
}

.customer-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
}
}

/* Profile Section Styles */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.profile-form-panel,
.profile-preview-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-header,
.preview-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e1e5e9;
}

.form-header h3,
.preview-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.profile-form .form-group {
    margin-bottom: 12px;
}

.profile-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.profile-form input,
.profile-form textarea,
.profile-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.profile-form input:focus,
.profile-form textarea:focus,
.profile-form select:focus {
    outline: none;
    border-color: #4CAF50;
}

.profile-form textarea {
    resize: vertical;
    min-height: 80px;
}

.upload-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-btn:hover {
    background: #45a049;
}

.form-actions {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

/* Profile Preview Card Styles */
/* Profile Preview Card Styles */
.profile-preview-card {
    width: 375px;
    height: 575px;
    margin: 0 auto;
    margin-top: 24px; /* Add gap between line and container */
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e1e5e9;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    min-height: 500px;
}

.preview-logo-section {
    text-align: center;
    margin-bottom: 20px;
}

.preview-logo {
    width: 60px;
    height: 60px;
    background: #4CAF50;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin: 0 auto;
}

.preview-business-info {
    text-align: center;
    margin-bottom: 24px;
}

.preview-business-name {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.preview-divider {
    height: 1px;
    background: #dee2e6;
    margin: 12px 0;
}

.preview-username {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.preview-details {
    margin-bottom: 24px;
}

.preview-detail-item {
    margin-bottom: 16px;
}

.preview-detail-item label {
    display: block;
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-detail-item p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

.preview-link-section {
    text-align: center;
}

.preview-link-btn {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.preview-link-btn:hover {
    background: #45a049;
    color: white;
    text-decoration: none;
}

/* Responsive Design for Profile */
@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .profile-preview-card {
        width: 375px;
        height: 575px;
        margin: 0 auto;
    }
}

.profile-preview-card {
    width: 375px;
    height: 575px;
    margin: 0 auto;
    overflow-y: auto;
    width: 375px;
    height: 575px;
    margin: 0 auto;
    min-height: 400px;
}
}

@media (max-width: 768px) {

    .profile-form-panel,
    .profile-preview-panel {
        padding: 20px;
    }

    .profile-preview-card {
        width: 375px;
        height: 575px;
        padding: 20px;
        margin: 0 auto;
    }

    .preview-business-name {
        font-size: 18px;
    }

    .preview-logo {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

.profile-preview-card {
    width: 375px;
    height: 575px;
    margin: 0 auto;
    overflow-y: auto;
    width: 375px;
    height: 575px;
    margin: 0 auto;
    padding: 20px;
    min-height: 350px;
}

.preview-business-name {
    font-size: 18px;
}

.preview-logo {
    width: 50px;
    height: 50px;
    font-size: 20px;
}
}

/* Enhanced scrollable profile card */
.profile-preview-card::-webkit-scrollbar {
    width: 6px;
}

.profile-preview-card::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.profile-preview-card::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.profile-preview-card::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Ensure content fits well within the card */
.preview-details {
    max-height: 300px;
    overflow-y: auto;
}

.preview-details::-webkit-scrollbar {
    width: 4px;
}

.preview-details::-webkit-scrollbar-track {
    background: transparent;
}

.preview-details::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}


.content-section {
    background: white !important;
    border: 1px solid #ddd !important;
    margin: 10px !important;
}

/* Ensure proper layout */
.admin-container {
    position: relative;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.main-content {
    position: relative;
    z-index: 1;
}

/* Ensure main content is properly positioned */
.main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
    background: #f5f5f5;
    position: relative;
}

/* Ensure content sections are visible */
.content-section {
    display: none;
    padding: 32px;
    background: white;
    margin: 0;
}

.content-section.active {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: #4CAF50;
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

/* Move hamburger button when sidebar is open */
.hamburger-btn.active {
    left: 296px;
    background: #dc3545;
}

.hamburger-btn.active:hover {
    background: #c82333;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 70px;
    }

    .header {
        padding-left: 70px;
    }

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


.profile-form-panel {
    background: white !important;
    border: 2px solid #4CAF50 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.profile-preview-panel {
    background: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.profile-preview-card {
    background: #f8f9fa !important;
    border: 1px solid #e1e5e9 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    width: 375px !important;
    height: 575px !important;
    margin: 0 auto !important;
    margin-top: 24px !important; /* Add gap between line and container */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Ensure profile layout works correctly */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.profile-form-panel,
.profile-preview-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

.profile-preview-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-preview-card {
    width: 375px;
    height: 575px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e1e5e9;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    margin: 0;
    margin-top: 24px; /* Add gap between line and container */
}

/* Responsive design for profile */
@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .profile-preview-card {
        width: 375px;
        height: 575px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    .profile-form-panel,
    .profile-preview-panel {
        padding: 20px;
    }

    .profile-preview-card {
        width: 375px;
        height: 575px;
        padding: 20px;
        margin: 0 auto;
    }
}

/* Updated Profile Preview Card with Fixed Top/Bottom */
.profile-preview-card {
    width: 375px;
    height: 575px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0;
    border: 1px solid #e1e5e9;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Fixed Top Section */
.preview-top-fixed {
    background: white;
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    flex-shrink: 0;
    text-align: center;
}

.preview-logo {
    width: 60px;
    height: 60px;
    background: #4CAF50;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin: 0 auto 12px auto;
}

.preview-business-name {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

/* Scrollable Middle Section */
.preview-middle-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.preview-username {
    margin: 0 0 16px 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.preview-details {
    margin: 0;
}

.preview-detail-item {
    margin-bottom: 16px;
}

.preview-detail-item label {
    display: block;
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-detail-item p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

/* Preview Images Section */
.preview-images-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
    display: block !important; /* Force display when shown */
}

.preview-images-section label {
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-images-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
    width: 100%;
}

.preview-image-item {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Square aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    background: #f5f5f5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 80px; /* Ensure minimum height */
}

.preview-image-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: #f0f0f0; /* Show background if image fails to load */
}

/* Fallback if image doesn't load */
.preview-image-item:empty::before {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #ccc;
}

/* Fixed Bottom Section */
.preview-bottom-fixed {
    background: white;
    padding: 20px;
    border-top: 1px solid #e1e5e9;
    flex-shrink: 0;
    text-align: center;
}

.preview-divider {
    height: 1px;
    background: #dee2e6;
    margin: 0 0 16px 0;
}

.preview-link-btn {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.preview-link-btn:hover {
    background: #45a049;
    color: white;
    text-decoration: none;
}

/* Custom scrollbar for middle section */
.preview-middle-scrollable::-webkit-scrollbar {
    width: 6px;
}

.preview-middle-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.preview-middle-scrollable::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.preview-middle-scrollable::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Updated Profile Preview Card - Smaller sections, no white backgrounds */
.profile-preview-card {
    width: 375px;
    height: 575px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0;
    border: 1px solid #e1e5e9;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Smaller Fixed Top Section - No white background */
.preview-top-fixed {
    background: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid #e1e5e9;
    flex-shrink: 0;
    text-align: center;
}

.preview-logo {
    width: 50px;
    height: 50px;
    background: #4CAF50;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin: 0 auto 8px auto;
}

.preview-business-name {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

/* Scrollable Middle Section - More space */
.preview-middle-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    background: #f8f9fa;
}

.preview-username {
    margin: 0 0 12px 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.preview-details {
    margin: 0;
}

.preview-detail-item {
    margin-bottom: 12px;
}

.preview-detail-item label {
    display: block;
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-detail-item p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

/* Smaller Fixed Bottom Section - No white background */
.preview-bottom-fixed {
    background: #f8f9fa;
    padding: 12px 20px;
    border-top: 1px solid #e1e5e9;
    flex-shrink: 0;
    text-align: center;
}

.preview-divider {
    height: 1px;
    background: #dee2e6;
    margin: 0 0 12px 0;
}

.preview-link-btn {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

.preview-link-btn:hover {
    background: #45a049;
    color: white;
    text-decoration: none;
}

/* Custom scrollbar for middle section */
.preview-middle-scrollable::-webkit-scrollbar {
    width: 6px;
}

.preview-middle-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.preview-middle-scrollable::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.preview-middle-scrollable::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Even smaller fixed sections for profile card */
.preview-top-fixed {
    background: #f8f9fa;
    padding: 8px 16px;
    border-bottom: 1px solid #e1e5e9;
    flex-shrink: 0;
    text-align: center;
}

.preview-logo {
    width: 40px;
    height: 40px;
    background: #4CAF50;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    margin: 0 auto 6px auto;
}

.preview-business-name {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

/* More space for scrollable middle section */
.preview-middle-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    background: #f8f9fa;
}

.preview-username {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.preview-details {
    margin: 0;
}

.preview-detail-item {
    margin-bottom: 10px;
}

.preview-detail-item label {
    display: block;
    font-weight: 600;
    color: #495057;
    font-size: 11px;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-detail-item p {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.3;
}

/* Even smaller fixed bottom section */
.preview-bottom-fixed {
    background: #f8f9fa;
    padding: 8px 16px;
    border-top: 1px solid #e1e5e9;
    flex-shrink: 0;
    text-align: center;
}

.preview-divider {
    height: 1px;
    background: #dee2e6;
    margin: 0 0 8px 0;
}

.preview-link-btn {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.preview-link-btn:hover {
    background: #45a049;
    color: white;
    text-decoration: none;
}

/* Ultra-minimal fixed sections with restored text sizes */
.preview-top-fixed {
    background: #f8f9fa;
    padding: 6px 12px;
    border-bottom: 1px solid #e1e5e9;
    flex-shrink: 0;
    text-align: center;
}

.preview-logo {
    width: 35px;
    height: 35px;
    background: #4CAF50;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    margin: 0 auto 4px auto;
}

.preview-business-name {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

/* Maximum space for scrollable middle section */
.preview-middle-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    background: #f8f9fa;
}

.preview-username {
    margin: 0 0 12px 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.preview-details {
    margin: 0;
}

.preview-detail-item {
    margin-bottom: 12px;
}

.preview-detail-item label {
    display: block;
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-detail-item p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

/* Ultra-minimal fixed bottom section */
.preview-bottom-fixed {
    background: #f8f9fa;
    padding: 6px 12px;
    border-top: 1px solid #e1e5e9;
    flex-shrink: 0;
    text-align: center;
}

.preview-divider {
    height: 1px;
    background: #dee2e6;
    margin: 0 0 6px 0;
}

.preview-link-btn {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

.preview-link-btn:hover {
    background: #45a049;
    color: white;
    text-decoration: none;
}

/* Photo preview section styling */
.preview-photo-section {
    text-align: center;
    margin: 12px 0;
}

.preview-photo {
    width: 80px;
    height: 80px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 24px;
    margin: 0 auto;
    border: 2px dashed #dee2e6;
    transition: all 0.2s ease;
}

.preview-photo:hover {
    border-color: #4CAF50;
    background: #f8f9fa;
}

.preview-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Logo preview styling */
.preview-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Fix Create Message Layout - Ensure two-panel layout */
.create-message-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    /* Further reduced for easier viewing */
    margin-top: 24px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    min-height: 100vh !important;
    /* Changed from height: auto */
    padding: 20px !important;
    /* Add padding for better spacing */
}

.message-form-panel,
.message-preview-panel {
    background: white;
    border-radius: 12px;
    padding: 0 !important;
    /* Remove padding to control layout */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: calc(100vh - 200px) !important;
    /* Set fixed height */
    display: flex !important;
    flex-direction: column !important;
}

.message-preview-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Override form header to be static */
.form-header {
    padding: 24px 24px 12px 24px !important;
    /* Add padding to header */
    background: white !important;
    border-radius: 12px 12px 0 0 !important;
    /* Rounded top corners */
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    /* Separator line */
    margin-bottom: 0 !important;
}

/* Override form content to be scrollable */
.message-form {
    padding: 24px !important;
    /* Add padding to form content */
    padding-bottom: 20px !important;
    /* Extra padding at bottom for scrolling */
    overflow-y: auto !important;
    /* Make form content scrollable */
    flex: 1 !important;
    /* Take remaining space */
    scrollbar-width: thin !important;
    /* Firefox */
    scrollbar-color: #4CAF50 #f1f1f1 !important;
    /* Firefox */
    scroll-behavior: smooth !important;
    /* Smooth scrolling */
}

/* Override preview header to be static */
.preview-header {
    padding: 24px 24px 16px 24px !important;
    /* Add padding to header */
    border-bottom: 1px solid #e0e0e0 !important;
    width: 100% !important;
    background: white !important;
    border-radius: 12px 12px 0 0 !important;
    /* Rounded top corners */
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    margin-bottom: 40px !important;
}

.preview-card {
    width: 375px;
    height: 575px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0;
    border: 1px solid #e1e5e9;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Increase container size to allow larger preview card */
.message-preview-panel {
    min-height: 800px;
}

/* Add gap for buzzfeed preview card - override margin and ensure size */
.message-preview-panel .preview-card {
    margin-top: 40px !important;
    width: 450px !important;
    height: 700px !important;
}

/* Responsive design for Create Message */
@media (max-width: 1024px) {
    .create-message-container {
        grid-template-columns: 1fr;
        gap: 12px;
        /* Further reduced for easier viewing */
    }

    .preview-card {
        width: 375px;
        height: 575px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    .message-form-panel,
    .message-preview-panel {
        padding: 20px;
    }

    .preview-card {
        width: 375px;
        height: 575px;
        padding: 0;
        margin: 0 auto;
    }
}

/* Ensure Create Message preview card matches Profile card styling */
.preview-card {
    width: 375px;
    height: 575px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0;
    border: 1px solid #e1e5e9;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Fixed top section for message preview */
.preview-top-fixed {
    background: #f8f9fa;
    padding: 6px 12px;
    border-bottom: 1px solid #e1e5e9;
    flex-shrink: 0;
    text-align: center;
}

.preview-logo {
    width: 35px;
    height: 35px;
    background: #4CAF50;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    margin: 0 auto 4px auto;
}

.preview-business-name {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

/* Scrollable middle section for message preview */
.preview-middle-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    background: #f8f9fa;
}

.preview-date {
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 8px;
    text-align: right;
    /* Move date to right end */
}

.preview-title {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.preview-content {
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Preview Image Styles */
.preview-image-container {
    margin: 12px 0;
    text-align: center;
    
}

.preview-image-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    
}

/* File Preview Styles */
.file-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #495057;
    font-size: 14px;
}

.file-preview i {
    color: #6c757d;
    font-size: 16px;
}

/* Work Notepad Styles */
.notepad-container {
    margin-top: 32px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.notepad-header {
    background: #f8f9fa;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.notepad-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.notepad-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.notepad-content {
    padding: 24px;
}

.notepad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.notepad-field {
    display: flex;
    flex-direction: column;
}

.notepad-field label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.notepad-field input,
.notepad-field textarea,
.notepad-field select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: #f9f9f9;
}

.notepad-field input:focus,
.notepad-field textarea:focus,
.notepad-field select:focus {
    outline: none;
    border-color: #4CAF50;
    background: white;
}

.notepad-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Responsive notepad */
@media (max-width: 768px) {
    .notepad-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .notepad-content {
        padding: 20px;
    }
}

/* Fixed bottom section for message preview */
.preview-bottom-fixed {
    background: #f8f9fa;
    padding: 6px 12px;
    border-top: 1px solid #e1e5e9;
    flex-shrink: 0;
    text-align: center;
}

.preview-link {
    display: none;
}

.preview-link a {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

.preview-link a:hover {
    background: #45a049;
    color: white;
    text-decoration: none;
}

/* Show link when it has content */
.preview-link:not(:empty) {
    display: block;
}

/* Custom scrollbar for message preview */
.preview-middle-scrollable::-webkit-scrollbar {
    width: 6px;
}

.preview-middle-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.preview-middle-scrollable::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.preview-middle-scrollable::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Terms & Conditions flip functionality */
.preview-links-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.preview-terms {
    display: none;
}

.preview-terms a {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.preview-terms a:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

/* Terms & Conditions content styling */
.preview-terms-content {
    width: 375px;
    height: 575px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0;
    border: 1px solid #e1e5e9;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.terms-header {
    background: #6c757d;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.terms-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.close-terms-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.close-terms-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.terms-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: white;
}

.terms-body #previewTermsText {
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Flip animations */
@keyframes flipIn {
    0% {
        opacity: 0;
        transform: rotateY(-90deg);
    }

    100% {
        opacity: 1;
        transform: rotateY(0deg);
    }
}

@keyframes flipOut {
    0% {
        opacity: 1;
        transform: rotateY(0deg);
    }

    100% {
        opacity: 0;
        transform: rotateY(90deg);
    }
}

/* Custom scrollbar for terms content */
.terms-body::-webkit-scrollbar {
    width: 6px;
}

.terms-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.terms-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.terms-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive design for terms */
@media (max-width: 768px) {
    .preview-links-container {
        flex-direction: column;
        gap: 8px;
    }

    .preview-terms a,
    .preview-link a {
        font-size: 11px;
        padding: 5px 10px;
    }
}


/* Terms & Conditions flip functionality improvements */
.close-terms-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.close-terms-btn:hover {
    background: #5a6268;
}

.close-terms-btn i {
    font-size: 14px;
}

/* Terms content styling */
.terms-body {
    padding: 20px;
    background: white;
    border-radius: 0 0 12px 12px;
    max-height: 400px;
    overflow-y: auto;
}

.terms-body #previewTermsText {
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

/* Terms header styling */
.terms-header {
    background: #6c757d;
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.terms-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Flip animations */
@keyframes flipIn {
    0% {
        opacity: 0;
        transform: rotateY(-90deg);
    }

    100% {
        opacity: 1;
        transform: rotateY(0deg);
    }
}

@keyframes flipOut {
    0% {
        opacity: 1;
        transform: rotateY(0deg);
    }

    100% {
        opacity: 0;
        transform: rotateY(90deg);
    }
}

/* Custom scrollbar for terms content */
.terms-body::-webkit-scrollbar {
    width: 6px;
}

.terms-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.terms-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.terms-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Terms & Conditions Footer Styles */
.terms-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.back-to-message-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.back-to-message-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.back-to-message-btn i {
    font-size: 12px;
}

/* Terms content structure */
.preview-terms-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.terms-header {
    padding: 20px 20px 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.terms-header h3 {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.terms-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: white;
    line-height: 1.6;
    color: #495057;
}

/* Ensure original card structure is preserved */
#previewCard {
    display: flex !important;
    flex-direction: column !important;
    width: 375px !important;
    height: 575px !important;
    background: #f8f9fa !important;
    border-radius: 12px !important;
    padding: 0 !important;
    border: 1px solid #e1e5e9 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Ensure bottom section stays at bottom */
.preview-bottom-fixed {
    margin-top: auto !important;
    background: #f8f9fa !important;
    padding: 6px 12px !important;
    border-top: 1px solid #e1e5e9 !important;
    flex-shrink: 0 !important;
    text-align: center !important;
}

/* Ensure buttons are properly displayed */
.preview-links-container {
    display: flex !important;
    gap: 8px !important;
    justify-content: center !important;
    align-items: center !important;
}

.preview-link {
    display: none !important;
}

.preview-link:not(:empty) {
    display: block !important;
}

.preview-terms {
    display: none !important;
}

.preview-terms:not(:empty) {
    display: block !important;
}

.preview-link a,
.preview-terms a {
    display: inline-block !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: background-color 0.2s ease !important;
}

.preview-link a {
    background: #4CAF50 !important;
    color: white !important;
}

.preview-link a:hover {
    background: #45a049 !important;
    color: white !important;
    text-decoration: none !important;
}

.preview-terms a {
    background: #6c757d !important;
    color: white !important;
}

.preview-terms a:hover {
    background: #5a6268 !important;
    color: white !important;
    text-decoration: none !important;
}

/* ============================================
   MODERN DASHBOARD REDESIGN - DEXIGNLAB STYLE
   ============================================ */

/* Dashboard Search */
.dashboard-search-container {
    margin-bottom: 24px;
}

.dashboard-search {
    position: relative;
    max-width: 400px;
}

.dashboard-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Dashboard Stats Row */
.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.modern-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-card-info {
    flex: 1;
}

.stat-card-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.stat-change-wrapper {
    display: flex;
    align-items: center;
}

.stat-change {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.stat-change.positive {
    color: #4CAF50;
    background: #e8f5e9;
}

.stat-change.negative {
    color: #f44336;
    background: #ffebee;
}

.stat-chart-mini {
    height: 40px;
    margin: 16px 0;
    opacity: 0.6;
}

.stat-chart-mini canvas {
    width: 100%;
    height: 100%;
}

.stat-period-btn {
    width: 100%;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stat-period-btn:hover {
    background: #e9ecef;
    border-color: #4CAF50;
}

.stat-analytics-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.stat-analytics-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8e41 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.stat-analytics-btn:active {
    transform: translateY(0);
}

.stat-analytics-btn i {
    font-size: 14px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dashboard-card.large-card {
    grid-column: 1;
}

.card-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.card-header-modern h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-modern h3 i {
    color: #4CAF50;
    font-size: 16px;
}

.close-analytics-btn {
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.close-analytics-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.analytics-content {
    width: 100%;
}

.analytics-body {
    padding-top: 20px;
}

.analytics-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.analytics-stat-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.analytics-stat-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.analytics-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.analytics-chart-container {
    width: 100%;
    height: 300px;
    margin-top: 20px;
    position: relative;
}

.analytics-chart-container canvas {
    max-height: 100%;
}

.analytics-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.analytics-loading i {
    font-size: 32px;
    color: #4CAF50;
    margin-bottom: 12px;
}

.analytics-loading p {
    margin: 0;
    font-size: 14px;
}

.analytics-period-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}

.period-filter-btn {
    padding: 10px 24px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.period-filter-btn:hover {
    background: #e9ecef;
    border-color: #4CAF50;
    color: #333;
}

.period-filter-btn.active {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-color: #4CAF50;
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.period-filter-btn.active:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8e41 100%);
}

.period-select {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    background: white;
    cursor: pointer;
}

.period-select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Balance Summary */
.balance-summary-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.balance-amount {
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.balance-value {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
}

.balance-arrow {
    color: #4CAF50;
    font-size: 18px;
}

.balance-chart-container {
    height: 200px;
    position: relative;
}

.balance-chart-container canvas {
    width: 100%;
    height: 100%;
}

/* Engagement Summary */
.engagement-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.engagement-value {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.engagement-value > span:first-child {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.engagement-change {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.engagement-change.positive {
    color: #4CAF50;
    background: #e8f5e9;
}

.engagement-chart-container {
    height: 150px;
    position: relative;
}

.engagement-chart-container canvas {
    width: 100%;
    height: 100%;
}

/* Contacts Card */
.contacts-subtitle {
    margin-bottom: 16px;
}

.contacts-subtitle p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.contacts-subtitle span {
    font-weight: 600;
    color: #2c3e50;
}

.icon-btn-add {
    width: 32px;
    height: 32px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.icon-btn-add:hover {
    background: #45a049;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

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

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 2px 0;
}

.contact-role {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.contact-action {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.contact-action:hover {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

/* Kite Analytics Filters */
.kite-analytics-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-filter {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-filter i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-filter .filter-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-filter label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range-inputs span {
    font-size: 13px;
    color: #666;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
}

.date-specific-input {
    display: flex;
    align-items: center;
}

.filter-input:focus,
.filter-select:focus,
.date-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Transaction/Message History */
.transaction-date-range {
    margin-bottom: 16px;
}

.transaction-date-range span {
    font-size: 13px;
    color: #666;
}

.card-header-actions {
    display: flex;
    gap: 8px;
}

.icon-btn-small {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.icon-btn-small:hover {
    background: #f8f9fa;
    border-color: #4CAF50;
    color: #4CAF50;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 720px; /* Approximately 10 items (60px each + 12px gap) */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px; /* Space for scrollbar */
}

/* Custom scrollbar styling for transaction list */
.transaction-list::-webkit-scrollbar {
    width: 6px;
}

.transaction-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.transaction-list::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 10px;
}

.transaction-list::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.transaction-item:hover {
    background: #f8f9fa;
}

/* Message Stats Box */
.message-stats-box {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-left: auto;
    margin-right: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}

.stat-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-label i {
    font-size: 18px;
    color: #4CAF50;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.transaction-info {
    flex: 1;
    min-width: 0;
}

.transaction-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
}

.transaction-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.transaction-amount {
    font-size: 14px;
    font-weight: 600;
    color: #4CAF50;
    margin-left: auto;
}

.transaction-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.transaction-status.completed {
    color: #4CAF50;
    background: #e8f5e9;
}

.transaction-status.in-process {
    color: #ff9800;
    background: #fff3e0;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.completed {
    background: #4CAF50;
}

.status-dot.in-process {
    background: #ff9800;
}

.transaction-menu {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.transaction-menu:hover {
    background: #f0f0f0;
}

/* Loading States */
.loading-state-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
}

.loading-state-small i {
    font-size: 24px;
    margin-bottom: 12px;
    color: #4CAF50;
}

.loading-state-small p {
    font-size: 13px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card.large-card {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .dashboard-stats-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card {
        padding: 16px;
    }
    
    .stat-card-info h2 {
        font-size: 24px;
    }
    
    .balance-value {
        font-size: 24px;
    }
}

/* Image Crop Modal Styles */
.crop-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.crop-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.crop-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e1e5e9;
}

.crop-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.crop-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.crop-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.crop-modal-body {
    padding: 24px;
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.crop-container {
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.crop-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.crop-controls button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crop-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e1e5e9;
}

.crop-modal-footer button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Cropper.js overrides */
.cropper-container {
    direction: ltr !important;
}

.cropper-view-box {
    outline: 2px solid #4CAF50 !important;
    outline-offset: -2px;
}

.cropper-face {
    background-color: rgba(76, 175, 80, 0.1) !important;
}