/* /assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fb;
    color: #333;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #2c3e50;
    color: #fff;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #34495e;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ecf0f1;
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-menu li a:hover {
    background: #34495e;
    color: #fff;
}

.nav-menu li.active a {
    background: #3498db;
    color: #fff;
}

.nav-menu .icon {
    margin-right: 10px;
    font-size: 18px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    background: #f5f7fb;
}

.top-bar {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-bar h1 {
    font-size: 20px;
    color: #2c3e50;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    padding: 8px 15px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.logout-btn:hover {
    background: #c0392b;
}

.content-wrapper {
    padding: 30px;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card.warning {
    border-left: 4px solid #f39c12;
}

.stat-card.success {
    border-left: 4px solid #27ae60;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
}

/* Tables */
.data-table {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-table thead {
    background: #34495e;
    color: #fff;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 500;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-not_called {
    background: #95a5a6;
    color: #fff;
}

.status-requested_email {
    background: #3498db;
    color: #fff;
}

.status-email_sent {
    background: #9b59b6;
    color: #fff;
}

.status-not_interested {
    background: #e74c3c;
    color: #fff;
}

.status-call_back_later {
    background: #f39c12;
    color: #fff;
}

.status-interested {
    background: #27ae60;
    color: #fff;
}

.status-converted {
    background: #2ecc71;
    color: #fff;
}

/* Forms */
.form-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-link {
    background: none;
    color: #3498db;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-icon {
    padding: 5px;
    font-size: 18px;
    text-decoration: none;
    opacity: 0.7;
}

.btn-icon:hover {
    opacity: 1;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Filters */
.filters-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Presence Indicators */
.presence-indicators {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #ecf0f1;
    border-radius: 4px;
    font-size: 14px;
}

.presence-score {
    margin-left: 5px;
    font-size: 12px;
    color: #7f8c8d;
}

/* Modal container */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scrolling if content overflows */
    background-color: rgba(0,0,0,0.5);
}

/* Modal content */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from top and centered */
    padding: 25px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    max-height: 80vh; /* Limit height to 80% of viewport */
    overflow-y: auto; /* Enable vertical scroll inside modal */
    position: relative;
}

/* Close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: sticky;
    top: 0;
    background: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    background: #f0f0f0;
}

/* Form actions at the bottom of modal */
.modal .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    background: white;
}

/* Ensure form elements don't overflow */
.modal .form-group {
    margin-bottom: 15px;
}

.modal input,
.modal select,
.modal textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 90vh;
    }
}

/* Email Composer */
.composer-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.template-selector,
.composer-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.template-preview {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.preview-subject {
    padding: 10px;
    background: #ecf0f1;
    border-radius: 4px;
    margin-bottom: 10px;
}

.preview-body {
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    white-space: pre-wrap;
}

/* Analytics */
.analytics-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-distribution {
    margin: 20px 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.status-label {
    width: 150px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-bar {
    flex: 1;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.status-bar-fill {
    height: 100%;
    transition: width 0.3s;
}

.status-count {
    width: 50px;
    text-align: right;
    font-weight: 500;
}

.presence-grid {
    display: grid;
    gap: 15px;
}

.presence-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 15px;
}

.presence-bar {
    height: 30px;
    background: #ecf0f1;
    border-radius: 15px;
    overflow: hidden;
}

.presence-bar-fill {
    height: 100%;
    background: #3498db;
    color: #fff;
    line-height: 30px;
    padding: 0 15px;
    font-size: 12px;
    white-space: nowrap;
}

/* Follow-up */
.followup-due {
    background: #fff3cd;
}

.followup-due:hover {
    background: #ffe69c;
}

.info-message {
    padding: 30px;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-header h2,
    .nav-menu span:not(.icon) {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .composer-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
}

.view-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-card.full-width {
    grid-column: 1 / -1;
}

.info-card h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
    color: #2c3e50;
}

.info-table {
    width: 100%;
}

.info-table th {
    width: 120px;
    text-align: left;
    padding: 8px 0;
    color: #7f8c8d;
    font-weight: 500;
}

.info-table td {
    padding: 8px 0;
}

.presence-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.presence-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 4px;
}

.presence-item.present {
    background: #d4edda;
}

.presence-item.absent {
    background: #f8d7da;
}

.presence-icon {
    font-size: 18px;
    width: 30px;
}

.presence-label {
    font-weight: 500;
    width: 100px;
}

.presence-value {
    flex: 1;
}

.presence-score-display {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
    text-align: right;
}

.score-badge {
    display: inline-block;
    padding: 5px 10px;
    background: #3498db;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
}

.notes-content {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    line-height: 1.6;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-style: italic;
}

@media (max-width: 768px) {
    .view-grid {
        grid-template-columns: 1fr;
    }
}

.status-active {
    background: #27ae60;
    color: #fff;
}

.status-inactive {
    background: #95a5a6;
    color: #fff;
}

.email-detail {
    padding: 20px;
}

.detail-table {
    width: 100%;
    margin-bottom: 20px;
}

.detail-table th {
    width: 100px;
    text-align: left;
    padding: 10px;
    background: #f8f9fa;
}

.detail-table td {
    padding: 10px;
}

.email-preview {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.email-preview h4 {
    margin: 0;
    padding: 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.subject-box {
    padding: 15px;
    background: #fff;
    font-weight: 500;
}

.body-box {
    padding: 20px;
    background: #fff;
    line-height: 1.6;
    white-space: pre-wrap;
}

.modal-lg {
    max-width: 800px;
}

.status-sent {
    background: #3498db;
    color: #fff;
}

.status-opened {
    background: #27ae60;
    color: #fff;
}

.status-replied {
    background: #2ecc71;
    color: #fff;
}

.followups-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.followup-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.followup-card.overdue {
    border-left-color: #e74c3c;
    background: #fff5f5;
}

.followup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.followup-header h3 {
    color: #2c3e50;
    margin: 0;
}

.followup-date {
    font-weight: 600;
    color: #3498db;
}

.followup-date.overdue-badge {
    color: #e74c3c;
}

.overdue-label {
    font-size: 12px;
    font-weight: normal;
    color: #e74c3c;
}

.followup-details {
    margin-bottom: 15px;
}

.followup-details p {
    margin: 8px 0;
    color: #34495e;
}

.followup-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.no-data-message {
    text-align: center;
    padding: 50px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-data-message p {
    color: #27ae60;
    font-size: 18px;
    font-weight: 500;
}

.preview-container {
    padding: 20px;
}

.preview-box {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.preview-header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    font-weight: 500;
}

.preview-body {
    padding: 20px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.preview-note {
    margin-top: 20px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    color: #856404;
}

.error {
    padding: 20px;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.placeholders-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.placeholders-info h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.placeholders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.placeholder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.placeholder-item code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    color: #e83e8c;
}

.placeholder-item span {
    font-size: 13px;
    color: #6c757d;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.product-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    flex: 1;
}

.product-actions {
    display: flex;
    gap: 5px;
}

.product-url {
    margin-bottom: 15px;
    font-size: 13px;
    word-break: break-all;
}

.product-url a {
    color: #3498db;
    text-decoration: none;
}

.product-url a:hover {
    text-decoration: underline;
}

.product-description {
    color: #34495e;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.product-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #7f8c8d;
    font-size: 13px;
}

.stat-icon {
    font-size: 16px;
}

.stat-value {
    font-weight: 600;
    color: #2c3e50;
}

.product-footer {
    text-align: right;
}

.no-data-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-data-message p {
    color: #7f8c8d;
    font-size: 16px;
}

.no-data-message a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.no-data-message a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.info-box {
    background: #e1f5fe;
    border-left: 4px solid #03a9f4;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.info-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0277bd;
}

.info-box p {
    margin: 0;
    color: #01579b;
}

.info-box code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    color: #d32f2f;
}

.placeholder-preview {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.placeholder-preview h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.placeholder-preview code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    color: #d32f2f;
    font-weight: bold;
}

.placeholder-preview .example {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    color: #666;
    font-style: italic;
}

.placeholder-preview .example a {
    color: #2196f3;
    text-decoration: none;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #757575;
}

.info-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.info-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #f57c00;
}

.info-box p {
    margin: 5px 0;
    color: #e65100;
}

.info-box code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    color: #d32f2f;
}

.usage-note {
    font-style: italic;
    font-size: 13px;
    margin-top: 10px;
}

.current-usage {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.current-usage h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2e7d32;
}

.usage-stats {
    display: flex;
    gap: 30px;
}

.usage-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.usage-stat .stat-label {
    font-weight: 500;
    color: #2e7d32;
}

.usage-stat .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1b5e20;
}

.view-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-card.full-width {
    grid-column: 1 / -1;
}

.info-card h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
    color: #2c3e50;
}

.info-table {
    width: 100%;
}

.info-table th {
    width: 120px;
    text-align: left;
    padding: 8px 0;
    color: #7f8c8d;
    font-weight: 500;
}

.info-table td {
    padding: 8px 0;
}

.info-table code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    color: #e83e8c;
}

.info-table .na {
    color: #95a5a6;
    font-style: italic;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
}

.big-stat {
    text-align: center;
}

.big-stat-value {
    font-size: 48px;
    font-weight: 700;
    color: #3498db;
    line-height: 1.2;
}

.big-stat-label {
    color: #7f8c8d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.description-content {
    line-height: 1.6;
    color: #34495e;
}

.email-example {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.example-subject {
    padding: 15px;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
    font-weight: 500;
}

.example-body {
    padding: 20px;
    background: #fff;
}

.example-body p {
    margin: 10px 0;
}

.example-body code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    color: #e83e8c;
}

.placeholder-value {
    padding: 10px;
    background: #f1f3f5;
    border-radius: 4px;
    font-family: monospace;
    word-break: break-all;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-style: italic;
}

@media (max-width: 768px) {
    .view-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 20px;
    }
}

.center {
    text-align: center;
}

.status-active {
    background: #27ae60;
    color: #fff;
}

.status-inactive {
    background: #95a5a6;
    color: #fff;
}

.performance-indicator {
    min-width: 120px;
}

.performance-indicator small {
    display: block;
    margin-bottom: 3px;
    color: #7f8c8d;
}

.progress-bar {
    height: 4px;
    background: #ecf0f1;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #3498db;
    transition: width 0.3s;
}

.na {
    color: #95a5a6;
    font-style: italic;
    font-size: 12px;
}

.info-box {
    background: #e8f4fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.info-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1976d2;
}

.info-box p {
    margin: 0;
    color: #0d47a1;
}

.stats-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stats-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.stat-value.success {
    color: #27ae60;
}

.industry-view {
    padding: 20px;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.view-header h2 {
    margin: 0;
    color: #2c3e50;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.description-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.description-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

.description-content {
    line-height: 1.6;
    color: #34495e;
}

.metrics-section {
    margin-bottom: 30px;
}

.metrics-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.metric-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #3498db;
}

.metric-card.success {
    border-left-color: #27ae60;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.metric-label {
    color: #7f8c8d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.campaigns-section,
.businesses-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.campaigns-section h3,
.businesses-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
}

.presence-score {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.presence-score.high {
    background: #d4edda;
    color: #155724;
}

.presence-score.medium {
    background: #fff3cd;
    color: #856404;
}

.presence-score.low {
    background: #f8d7da;
    color: #721c24;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-style: italic;
}

.status-active {
    background: #27ae60;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
}

.status-inactive {
    background: #95a5a6;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
}

.product-info {
    margin-top: 15px;
    padding: 15px;
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    border-radius: 4px;
}

.product-info a {
    color: #2196f3;
    word-break: break-all;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.status-active {
    background: #27ae60;
    color: #fff;
}
.status-inactive {
    background: #95a5a6;
    color: #fff;
}
.actions .delete {
    color: #e74c3c;
}