/**
 * NGCS Core - Main Stylesheet
 * Version: 1.0.36
 */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --ngcs-primary: #25D366;
    --ngcs-primary-hover: #1EBE56;
    --ngcs-secondary: #128C7E;
    --ngcs-secondary-hover: #0E7268;
    --ngcs-danger: #DC3545;
    --ngcs-danger-hover: #C82333;
    --ngcs-success: #28A745;
    --ngcs-warning: #FFC107;
    --ngcs-info: #17A2B8;
    --ngcs-light: #F8F9FA;
    --ngcs-dark: #343A40;
    --ngcs-border: #DEE2E6;
    --ngcs-text: #212529;
    --ngcs-muted: #6C757D;
    --ngcs-white: #FFFFFF;
    --ngcs-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --ngcs-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --ngcs-radius: 8px;
    --ngcs-radius-sm: 4px;
    --ngcs-transition: all 0.3s ease;
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */
.ngcs-app-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5); /* White with 50% opacity */
    border-radius: var(--ngcs-radius);
    box-shadow: var(--ngcs-shadow);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   HEADER
   ============================================================ */
.ngcs-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--ngcs-border);
}

.ngcs-business-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ngcs-business-selector label {
    font-weight: 600;
    color: var(--ngcs-text);
    margin: 0;
}

.ngcs-business-selector select {
    flex: 1;
    max-width: 300px;
    padding: 10px 15px;
    border: 1px solid var(--ngcs-border);
    border-radius: var(--ngcs-radius-sm);
    font-size: 14px;
    color: var(--ngcs-text);
    background: var(--ngcs-white);
    transition: var(--ngcs-transition);
}

.ngcs-business-selector select:focus {
    outline: none;
    border-color: var(--ngcs-primary);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

/* ============================================================
   TABS
   ============================================================ */
.ngcs-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ngcs-tab {
    padding: 12px 24px;
    border: none;
    background: var(--ngcs-light);
    color: var(--ngcs-text);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--ngcs-radius-sm);
    cursor: pointer;
    transition: var(--ngcs-transition);
}

.ngcs-tab:hover {
    background: var(--ngcs-border);
}

.ngcs-tab.active {
    background: var(--ngcs-primary);
    color: var(--ngcs-white);
}

/* ============================================================
   TAB CONTENT
   ============================================================ */
.ngcs-tab-content {
    padding: 30px 0;
}

.ngcs-tab-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--ngcs-text);
    font-size: 20px;
    font-weight: 600;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ngcs-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--ngcs-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ngcs-transition);
    text-align: center;
    display: inline-block;
}

.ngcs-btn-primary {
    background: var(--ngcs-primary);
    color: var(--ngcs-white);
}

.ngcs-btn-primary:hover {
    background: var(--ngcs-primary-hover);
}

.ngcs-btn-secondary {
    background: var(--ngcs-secondary);
    color: var(--ngcs-white);
}

.ngcs-btn-secondary:hover {
    background: var(--ngcs-secondary-hover);
}

.ngcs-btn-danger {
    background: var(--ngcs-danger);
    color: var(--ngcs-white);
}

.ngcs-btn-danger:hover {
    background: var(--ngcs-danger-hover);
}

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

#ngcs-add-business-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
}

/* ============================================================
   MODAL
   ============================================================ */
.ngcs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ngcs-modal-content {
    background: var(--ngcs-white);
    padding: 30px;
    border-radius: var(--ngcs-radius);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--ngcs-shadow-lg);
}

.ngcs-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--ngcs-text);
}

.ngcs-modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--ngcs-text);
}

.ngcs-modal-content input {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--ngcs-border);
    border-radius: var(--ngcs-radius-sm);
    font-size: 14px;
    box-sizing: border-box;
}

.ngcs-modal-content input:focus {
    outline: none;
    border-color: var(--ngcs-primary);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.ngcs-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ============================================================
   WHATSAPP STATUS
   ============================================================ */
.ngcs-wa-status {
    max-width: 600px;
}

.ngcs-status-box {
    padding: 20px;
    background: var(--ngcs-light);
    border-radius: var(--ngcs-radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--ngcs-info);
}

.ngcs-status-box.connected {
    border-left-color: var(--ngcs-success);
    background: #D4EDDA;
}

.ngcs-status-box.disconnected {
    border-left-color: var(--ngcs-danger);
    background: #F8D7DA;
}

/* ============================================================
   EXCEL UPLOAD
   ============================================================ */
.ngcs-excel-box {
    max-width: 600px;
}

.ngcs-excel-form {
    background: var(--ngcs-light);
    padding: 20px;
    border-radius: var(--ngcs-radius);
    margin-top: 15px;
}

.ngcs-excel-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--ngcs-text);
}

.ngcs-excel-form select {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--ngcs-border);
    border-radius: var(--ngcs-radius-sm);
    font-size: 14px;
    background: var(--ngcs-white);
}

.ngcs-excel-form input[type="file"] {
    display: block;
    margin-bottom: 15px;
    padding: 10px;
    border: 2px dashed var(--ngcs-border);
    border-radius: var(--ngcs-radius-sm);
    width: 100%;
    box-sizing: border-box;
}

/* ============================================================
   BATCHES LIST
   ============================================================ */
#ngcs-batch-list {
    display: grid;
    gap: 15px;
}

.ngcs-batch-item {
    padding: 20px;
    background: var(--ngcs-light);
    border-radius: var(--ngcs-radius);
    border-left: 4px solid var(--ngcs-primary);
}

.ngcs-batch-item h4 {
    margin: 0 0 10px 0;
    color: var(--ngcs-text);
    font-size: 16px;
}

.ngcs-batch-item p {
    margin: 5px 0;
    color: var(--ngcs-muted);
    font-size: 14px;
}

.ngcs-batch-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.ngcs-progress {
    width: 100%;
    height: 20px;
    background: var(--ngcs-border);
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.ngcs-progress-bar {
    height: 100%;
    background: var(--ngcs-success);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ngcs-white);
    font-size: 12px;
    font-weight: 600;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.ngcs-muted {
    color: var(--ngcs-muted);
    font-size: 14px;
}

.ngcs-text-success {
    color: var(--ngcs-success);
}

.ngcs-text-danger {
    color: var(--ngcs-danger);
}

.ngcs-text-warning {
    color: var(--ngcs-warning);
}

.ngcs-mb-0 { margin-bottom: 0; }
.ngcs-mb-1 { margin-bottom: 8px; }
.ngcs-mb-2 { margin-bottom: 16px; }
.ngcs-mb-3 { margin-bottom: 24px; }

.ngcs-mt-0 { margin-top: 0; }
.ngcs-mt-1 { margin-top: 8px; }
.ngcs-mt-2 { margin-top: 16px; }
.ngcs-mt-3 { margin-top: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .ngcs-app-container {
        margin: 10px;
        padding: 15px;
    }

    .ngcs-business-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .ngcs-business-selector select {
        max-width: 100%;
    }

    .ngcs-tabs {
        flex-direction: column;
    }

    .ngcs-tab {
        width: 100%;
        text-align: center;
    }

    .ngcs-modal-content {
        width: 95%;
        padding: 20px;
    }

    .ngcs-modal-actions {
        flex-direction: column;
    }

    .ngcs-modal-actions .ngcs-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ngcs-app-container {
        margin: 5px;
        padding: 10px;
    }

    .ngcs-tab {
        padding: 10px 15px;
        font-size: 13px;
    }

    .ngcs-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .ngcs-batch-actions {
        flex-direction: column;
    }

    .ngcs-batch-actions .ngcs-btn {
        width: 100%;
    }
}

/* ============================================================
   LOADING STATES
   ============================================================ */
.ngcs-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--ngcs-border);
    border-top-color: var(--ngcs-primary);
    border-radius: 50%;
    animation: ngcs-spin 0.8s linear infinite;
}

@keyframes ngcs-spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   ALERTS
   ============================================================ */
.ngcs-alert {
    padding: 15px 20px;
    border-radius: var(--ngcs-radius-sm);
    margin-bottom: 15px;
}

.ngcs-alert-success {
    background: #D4EDDA;
    color: #155724;
    border-left: 4px solid var(--ngcs-success);
}

.ngcs-alert-danger {
    background: #F8D7DA;
    color: #721C24;
    border-left: 4px solid var(--ngcs-danger);
}

.ngcs-alert-warning {
    background: #FFF3CD;
    color: #856404;
    border-left: 4px solid var(--ngcs-warning);
}

.ngcs-alert-info {
    background: #D1ECF1;
    color: #0C5460;
    border-left: 4px solid var(--ngcs-info);
}
.ngcs-form-group { margin-bottom: 15px; } .ngcs-form-group label { display: block; margin-bottom: 5px; }

/* ============================================================
   TEMPLATE STATUS BADGES
   ============================================================ */
.ngcs-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--ngcs-radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ngcs-status-approved {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.ngcs-status-pending {
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEAA7;
}

.ngcs-status-rejected {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.ngcs-status-paused {
    background: #E2E3E5;
    color: #383D41;
    border: 1px solid #D6D8DB;
}

/* Template Management Section */
.ngcs-section {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--ngcs-light);
    border-radius: var(--ngcs-radius);
}

.ngcs-section h4 {
    margin: 0 0 15px 0;
    color: var(--ngcs-dark);
    font-size: 18px;
}

/* ============================================================
   TEMPLATE FORM STYLING
   ============================================================ */
.ngcs-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.ngcs-form-group {
    margin-bottom: 15px;
}

.ngcs-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--ngcs-text);
    font-size: 14px;
}

.ngcs-input,
.ngcs-select,
.ngcs-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ngcs-border);
    border-radius: var(--ngcs-radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--ngcs-transition);
    box-sizing: border-box;
}

.ngcs-input:focus,
.ngcs-select:focus,
.ngcs-textarea:focus {
    outline: none;
    border-color: var(--ngcs-primary);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.ngcs-textarea {
    resize: vertical;
    min-height: 100px;
}

.ngcs-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--ngcs-muted);
}

.ngcs-form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.ngcs-form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

/* Status Messages */
.ngcs-success {
    padding: 12px 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: var(--ngcs-radius-sm);
    color: #155724;
    font-size: 14px;
}

.ngcs-error {
    padding: 12px 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: var(--ngcs-radius-sm);
    color: #721c24;
    font-size: 14px;
}

.ngcs-info {
    padding: 12px 15px;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: var(--ngcs-radius-sm);
    color: #0c5460;
    font-size: 14px;
}

/* Section Styling */
.ngcs-section {
    padding: 20px;
    background: var(--ngcs-white);
    border: 1px solid var(--ngcs-border);
    border-radius: var(--ngcs-radius);
    margin-bottom: 20px;
}

.ngcs-section h4 {
    margin: 0 0 10px 0;
    color: var(--ngcs-text);
    font-size: 18px;
}


/* ============================================================
   ANALYTICS / STATISTICS
   ============================================================ */

/* Stats Grid */
.ngcs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Stat Card */
.ngcs-stat-card {
    background: rgba(255, 255, 255, 0.5); /* White with 50% opacity */
    border: 2px solid var(--ngcs-border);
    border-radius: var(--ngcs-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--ngcs-transition);
    box-shadow: var(--ngcs-shadow);
}

.ngcs-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ngcs-shadow-lg);
}

/* Stat Icon */
.ngcs-stat-icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}

/* Stat Content */
.ngcs-stat-content {
    flex: 1;
}

.ngcs-stat-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ngcs-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ngcs-stat-number {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: var(--ngcs-dark);
}

/* Stat Card Colors */
.ngcs-stat-sent {
    border-left: 4px solid #007BFF;
}

.ngcs-stat-sent .ngcs-stat-number {
    color: #007BFF;
}

.ngcs-stat-delivered {
    border-left: 4px solid var(--ngcs-success);
}

.ngcs-stat-delivered .ngcs-stat-number {
    color: var(--ngcs-success);
}

.ngcs-stat-read {
    border-left: 4px solid var(--ngcs-info);
}

.ngcs-stat-read .ngcs-stat-number {
    color: var(--ngcs-info);
}

.ngcs-stat-failed {
    border-left: 4px solid var(--ngcs-danger);
}

.ngcs-stat-failed .ngcs-stat-number {
    color: var(--ngcs-danger);
}

/* Batch Stats Table Enhancements */
#ngcs-batch-stats-table {
    margin-top: 15px;
}

#ngcs-batch-stats-table th {
    background: var(--ngcs-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

#ngcs-batch-stats-table td {
    vertical-align: middle;
}

/* Success Rate Badge */
.ngcs-success-rate {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
}

.ngcs-success-rate.high {
    background: #D4EDDA;
    color: #155724;
}

.ngcs-success-rate.medium {
    background: #FFF3CD;
    color: #856404;
}

.ngcs-success-rate.low {
    background: #F8D7DA;
    color: #721C24;
}

/* Stat Numbers in Table */
.ngcs-batch-stats-table .stat-number {
    font-weight: 600;
    font-size: 14px;
}

.ngcs-batch-stats-table .stat-sent {
    color: #007BFF;
}

.ngcs-batch-stats-table .stat-delivered {
    color: var(--ngcs-success);
}

.ngcs-batch-stats-table .stat-read {
    color: var(--ngcs-info);
}

.ngcs-batch-stats-table .stat-failed {
    color: var(--ngcs-danger);
}

/* Empty State */
.ngcs-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--ngcs-muted);
}

.ngcs-empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.ngcs-empty-state h4 {
    margin: 0 0 10px 0;
    color: var(--ngcs-dark);
}

.ngcs-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design for Stats */
@media (max-width: 768px) {
    .ngcs-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ngcs-stat-number {
        font-size: 28px;
    }
    
    #ngcs-batch-stats-table {
        font-size: 13px;
    }
    
    #ngcs-batch-stats-table th,
    #ngcs-batch-stats-table td {
        padding: 8px 6px;
    }
}


/* ============================================================
   MESSAGE BATCHES TAB
   ============================================================ */
#ngcs-tab-batches {
    background: rgba(255, 255, 255, 0.5); /* White with 50% opacity */
    padding: 20px;
    border-radius: var(--ngcs-radius);
}

#ngcs-batches-table {
    background: rgba(255, 255, 255, 0.8); /* Slightly more opaque for readability */
    border-radius: var(--ngcs-radius);
}

}

.ngcs-alert-warning {
    background: #FFF3CD;
    color: #856404;
    border-left: 4px solid var(--ngcs-warning);
}

.ngcs-alert-info {
    background: #D1ECF1;
    color: #0C5460;
    border-left: 4px solid var(--ngcs-info);
}

/* ============================================================
   TABLE STYLES
   ============================================================ */
.ngcs-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.8); /* White with 80% opacity */
    border-radius: var(--ngcs-radius-sm);
    overflow: hidden;
}

.ngcs-table thead {
    background: var(--ngcs-secondary);
    color: var(--ngcs-white);
}

.ngcs-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.ngcs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--ngcs-border);
    font-size: 14px;
    color: var(--ngcs-text);
}

.ngcs-table tbody tr:hover {
    background: var(--ngcs-light);
}

.ngcs-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   PROGRESS BAR STYLES (Enhanced)
   ============================================================ */
.ngcs-progress-container {
    position: relative;
    width: 100%;
    height: 25px;
    background-color: #E9ECEF;
    border-radius: 4px;
    overflow: hidden;
}

.ngcs-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28A745 0%, #20C997 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.ngcs-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: #212529;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

/* ============================================================
   ERROR MESSAGE STYLES
   ============================================================ */
.error-message {
    color: #DC3545;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    max-width: 400px;
    word-wrap: break-word;
}

/* ============================================================
   FAILED MESSAGES TABLE
   ============================================================ */
#ngcs-failed-messages-table tbody tr:hover {
    background-color: #FFF3CD;
}

#ngcs-failed-messages-table td {
    vertical-align: middle;
}

/* ============================================================
   BATCH STATS TABLE ENHANCEMENTS
   ============================================================ */
#ngcs-batch-stats-table .stat-failed {
    color: #DC3545;
    font-weight: 600;
}

#ngcs-batch-stats-table .stat-delivered {
    color: #28A745;
    font-weight: 600;
}

#ngcs-batch-stats-table .stat-read {
    color: #17A2B8;
    font-weight: 600;
}

/* ============================================================
   SUCCESS RATE BADGE
   ============================================================ */
.ngcs-success-rate {
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
}

.ngcs-success-rate.high {
    background-color: #D4EDDA;
    color: #155724;
}

.ngcs-success-rate.medium {
    background-color: #FFF3CD;
    color: #856404;
}

.ngcs-success-rate.low {
    background-color: #F8D7DA;
    color: #721C24;
}

/* ============================================================
   SECTION STYLING
   ============================================================ */
.ngcs-section {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ngcs-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #212529;
    font-size: 18px;
    font-weight: 600;
}

/* ============================================================
   STATISTICS CARDS
   ============================================================ */
.ngcs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ngcs-stat-card {
    background: rgba(255, 255, 255, 0.5); /* White with 50% opacity */
    padding: 20px;
    border-radius: var(--ngcs-radius);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--ngcs-transition);
    border-left: 4px solid;
}

.ngcs-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ngcs-shadow-lg);
}

.ngcs-stat-card.ngcs-stat-sent {
    border-left-color: #007BFF;
}

.ngcs-stat-card.ngcs-stat-delivered {
    border-left-color: #28A745;
}

.ngcs-stat-card.ngcs-stat-read {
    border-left-color: #17A2B8;
}

.ngcs-stat-card.ngcs-stat-failed {
    border-left-color: #DC3545;
}

.ngcs-stat-icon {
    font-size: 32px;
    line-height: 1;
}

.ngcs-stat-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: var(--ngcs-muted);
    font-weight: 500;
}

.ngcs-stat-number {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--ngcs-text);
}

/* ============================================================
   RESPONSIVE ENHANCEMENTS
   ============================================================ */
@media (max-width: 768px) {
    .ngcs-progress-container {
        height: 20px;
    }
    
    .ngcs-progress-text {
        font-size: 11px;
    }
    
    .error-message {
        font-size: 12px;
        max-width: 200px;
    }
    
    .ngcs-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ngcs-stat-number {
        font-size: 24px;
    }
}

/* ============================================================
   TEMPLATE MANAGEMENT STYLES
   ============================================================ */
.ngcs-template-form {
    background: rgba(255, 255, 255, 0.5);
    padding: 25px;
    border-radius: var(--ngcs-radius);
    margin-top: 20px;
}

.ngcs-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ngcs-form-group {
    display: flex;
    flex-direction: column;
}

.ngcs-form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ngcs-text);
    font-size: 14px;
}

.ngcs-form-group input,
.ngcs-form-group select,
.ngcs-form-group textarea {
    padding: 10px 15px;
    border: 1px solid var(--ngcs-border);
    border-radius: var(--ngcs-radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--ngcs-transition);
}

.ngcs-form-group input:focus,
.ngcs-form-group select:focus,
.ngcs-form-group textarea:focus {
    outline: none;
    border-color: var(--ngcs-primary);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.ngcs-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.ngcs-form-group small {
    margin-top: 5px;
    color: var(--ngcs-muted);
    font-size: 12px;
}

.ngcs-radio-group {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.ngcs-radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.ngcs-radio-group input[type="radio"] {
    cursor: pointer;
}

.ngcs-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Parameter Examples Box */
.ngcs-parameter-examples {
    background: #E7F3FF;
    border: 1px solid #007BFF;
    border-radius: var(--ngcs-radius-sm);
    padding: 15px;
    margin-top: 15px;
}

.ngcs-parameter-examples h5 {
    margin: 0 0 10px 0;
    color: #007BFF;
    font-size: 14px;
}

.ngcs-parameter-example {
    margin-bottom: 10px;
}

.ngcs-parameter-example label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 13px;
}

.ngcs-parameter-example input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--ngcs-border);
    border-radius: var(--ngcs-radius-sm);
    font-size: 13px;
}

/* Status Messages */
.ngcs-status-message {
    padding: 12px 15px;
    border-radius: var(--ngcs-radius-sm);
    margin-top: 15px;
    font-size: 14px;
}

.ngcs-status-message.success {
    background: #D4EDDA;
    color: #155724;
    border-left: 4px solid #28A745;
}

.ngcs-status-message.error {
    background: #F8D7DA;
    color: #721C24;
    border-left: 4px solid #DC3545;
}

.ngcs-status-message.info {
    background: #D1ECF1;
    color: #0C5460;
    border-left: 4px solid #17A2B8;
}

/* Batches Tab Background */
#ngcs-tab-batches {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: var(--ngcs-radius);
}
