/**
 * Batch Calls - Modern UI Styles
 * Professional, dynamic and responsive design
 */

/* ========================================
   BATCH CALLS SECTION CONTAINER
   ======================================== */

#batchCallsSection {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

#batchCallsSection .page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #00838f 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

#batchCallsSection .page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

#batchCallsSection .page-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

#batchCallsSection .page-header p {
    color: rgba(255,255,255,0.85);
    margin: 0;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* ========================================
   NAVIGATION TABS
   ======================================== */

.batch-nav-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.batch-nav-tabs .btn {
    flex: 1;
    max-width: 280px;
    min-width: 200px;
    padding: 18px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.batch-nav-tabs .btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.batch-nav-tabs .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

.batch-nav-tabs .btn-secondary {
    background: linear-gradient(135deg, #00ACC1 0%, #006064 100%);
    box-shadow: 0 4px 15px rgba(0, 172, 193, 0.4);
}

.batch-nav-tabs .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 172, 193, 0.5);
}

/* ========================================
   CARDS - MODERN GLASS EFFECT
   ======================================== */

#batchCallsSection .batch-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 188, 212, 0.2);
    box-shadow: 0 10px 40px rgba(0, 188, 212, 0.15), inset 0 1px 0 rgba(0, 188, 212, 0.1);
    transition: all 0.3s ease;
}

#batchCallsSection .batch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 188, 212, 0.25), inset 0 1px 0 rgba(0, 188, 212, 0.2);
    border-color: rgba(0, 188, 212, 0.4);
}

#batchCallsSection .batch-card h3 {
    font-size: 1.5rem;
    margin: 0 0 25px 0;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

#batchCallsSection .batch-card h3::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 188, 212, 0.5) 0%, transparent 100%);
    margin-left: 15px;
}

/* ========================================
   FORM ELEMENTS - MODERN STYLE
   ======================================== */

#batchCallsSection .form-group {
    margin-bottom: 25px;
}

#batchCallsSection .form-group label {
    display: block;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#batchCallsSection .form-control {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#batchCallsSection .form-control:focus {
    outline: none;
    border-color: #00BCD4;
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

#batchCallsSection .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#batchCallsSection select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300BCD4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 50px;
}

#batchCallsSection small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 500;
}

/* File Input Custom Style */
#batchCallsSection input[type="file"] {
    padding: 12px;
    cursor: pointer;
}

#batchCallsSection input[type="file"]::file-selector-button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
}

#batchCallsSection input[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, #26C6DA 0%, #00ACC1 100%);
    transform: scale(1.02);
}

/* ========================================
   BUTTONS - GRADIENT & ANIMATED
   ======================================== */

#batchCallsSection .btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

#batchCallsSection .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

#batchCallsSection .btn:hover::before {
    left: 100%;
}

#batchCallsSection .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

#batchCallsSection .btn-primary {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

#batchCallsSection .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.5);
}

#batchCallsSection .btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    font-size: 1.1rem;
    padding: 16px 32px;
}

#batchCallsSection .btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

#batchCallsSection .btn-secondary {
    background: linear-gradient(135deg, #546E7A 0%, #37474F 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(84, 110, 122, 0.3);
}

#batchCallsSection .btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(84, 110, 122, 0.4);
}

#batchCallsSection .btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

#batchCallsSection .btn-warning {
    background: linear-gradient(135deg, #FF9800 0%, #E65100 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

#batchCallsSection .btn-info {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

#batchCallsSection .btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* ========================================
   BATCH LIST TABLE - MODERN DESIGN
   ======================================== */

#batchCallsSection .batch-table-container {
    overflow-x: auto;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
}

#batchCallsSection .batch-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
}

#batchCallsSection .batch-table thead {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2) 0%, rgba(0, 150, 167, 0.2) 100%);
}

#batchCallsSection .batch-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    color: #4DD0E1;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(0, 188, 212, 0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#batchCallsSection .batch-table td {
    padding: 18px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    vertical-align: middle;
    font-weight: 500;
}

#batchCallsSection .batch-table tbody tr {
    transition: all 0.3s ease;
}

#batchCallsSection .batch-table tbody tr:hover {
    background: rgba(0, 188, 212, 0.1);
}

#batchCallsSection .batch-table .batch-name {
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#batchCallsSection .batch-table .batch-agent {
    display: flex;
    align-items: center;
    gap: 8px;
}

#batchCallsSection .batch-table .batch-agent-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #7C4DFF 0%, #536DFE 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Status Badges */
#batchCallsSection .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#batchCallsSection .status-badge.pending {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3) 0%, rgba(255, 160, 0, 0.3) 100%);
    color: #FFEB3B;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

#batchCallsSection .status-badge.scheduled {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3) 0%, rgba(25, 118, 210, 0.3) 100%);
    color: #90CAF9;
    border: 1px solid rgba(33, 150, 243, 0.5);
}

#batchCallsSection .status-badge.in_progress,
#batchCallsSection .status-badge.dispatched {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.3) 0%, rgba(0, 150, 167, 0.3) 100%);
    color: #80DEEA;
    border: 1px solid rgba(0, 188, 212, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 188, 212, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(0, 188, 212, 0); }
}

#batchCallsSection .status-badge.completed {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(56, 142, 60, 0.3) 100%);
    color: #A5D6A7;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

#batchCallsSection .status-badge.failed,
#batchCallsSection .status-badge.cancelled {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.3) 0%, rgba(198, 40, 40, 0.3) 100%);
    color: #EF9A9A;
    border: 1px solid rgba(244, 67, 54, 0.5);
}

/* Progress Bar */
#batchCallsSection .progress-container {
    width: 100%;
    max-width: 150px;
}

#batchCallsSection .progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

#batchCallsSection .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00BCD4 0%, #4CAF50 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

#batchCallsSection .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

#batchCallsSection .progress-text {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
}

/* Actions Column */
#batchCallsSection .batch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ========================================
   MOBILE CARDS (global styles)
   ======================================== */

#batchCallsSection .batch-mobile-card {
    background: linear-gradient(145deg, rgba(30, 40, 60, 0.9) 0%, rgba(20, 30, 50, 0.95) 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#batchCallsSection .batch-mobile-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

#batchCallsSection .batch-mobile-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#batchCallsSection .batch-mobile-card .card-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

#batchCallsSection .batch-mobile-card .detail-item {
    background: rgba(0, 0, 0, 0.25);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#batchCallsSection .batch-mobile-card .detail-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#batchCallsSection .batch-mobile-card .detail-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}

#batchCallsSection .batch-mobile-card .card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#batchCallsSection .batch-mobile-card .card-actions .btn {
    flex: 1;
    min-width: calc(50% - 4px);
}

/* ========================================
   FILE INFO & VALIDATION
   ======================================== */

#batchCallsSection .file-info-box {
    margin-top: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(56, 142, 60, 0.1) 100%);
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
    display: flex;
    align-items: center;
    gap: 15px;
}

#batchCallsSection .file-info-box .file-icon {
    font-size: 2rem;
}

#batchCallsSection .validation-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(56, 142, 60, 0.1) 100%);
    border-left: 4px solid #4CAF50;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

#batchCallsSection .validation-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15) 0%, rgba(198, 40, 40, 0.1) 100%);
    border-left: 4px solid #f44336;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

/* ========================================
   HELP SECTION
   ======================================== */

#batchCallsSection .help-card {
    background: linear-gradient(145deg, rgba(33, 150, 243, 0.1) 0%, rgba(25, 118, 210, 0.05) 100%);
    border-left: 4px solid #2196F3;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

#batchCallsSection .help-card h4 {
    color: #90CAF9;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#batchCallsSection .help-card code {
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 5px;
    color: #80DEEA;
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 600;
    font-size: 0.95rem;
}

#batchCallsSection .help-card ul {
    margin: 10px 0;
    padding-left: 20px;
}

#batchCallsSection .help-card li {
    margin: 10px 0;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.6;
}

#batchCallsSection .help-card p {
    color: #ffffff;
    font-weight: 600;
    margin: 15px 0 10px 0;
}

#batchCallsSection .help-card strong {
    color: #fff;
    font-weight: 700;
}

/* ========================================
   BATCH DETAILS VIEW
   ======================================== */

#batchCallsSection .batch-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

#batchCallsSection .batch-details-header h3 {
    margin: 0;
    font-size: 1.8rem;
}

#batchCallsSection .batch-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

#batchCallsSection .info-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#batchCallsSection .info-card label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

#batchCallsSection .info-card strong {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#batchCallsSection .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

#batchCallsSection .stat-card {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
}

#batchCallsSection .stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

#batchCallsSection .stat-card .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

#batchCallsSection .stat-card.stat-pending .stat-value { color: #FFC107; }
#batchCallsSection .stat-card.stat-progress .stat-value { color: #00BCD4; }
#batchCallsSection .stat-card.stat-completed .stat-value { color: #4CAF50; }
#batchCallsSection .stat-card.stat-failed .stat-value { color: #f44336; }

/* ========================================
   EMPTY STATE
   ======================================== */

#batchCallsSection .empty-state {
    text-align: center;
    padding: 60px 20px;
}

#batchCallsSection .empty-state p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 25px;
}

/* ========================================
   MODAL OVERLAY
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay .modal-content {
    background: linear-gradient(145deg, rgba(30, 40, 60, 0.98) 0%, rgba(20, 30, 50, 0.99) 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-overlay h3 {
    color: #fff;
    margin: 0 0 15px 0;
}

.modal-overlay p {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 500;
}

.modal-overlay input[type="datetime-local"] {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
}

.modal-overlay input[type="datetime-local"]:focus {
    outline: none;
    border-color: #00BCD4;
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    #batchCallsSection {
        padding: 15px;
    }
    
    #batchCallsSection .page-header h1 {
        font-size: 2rem;
    }
    
    .batch-nav-tabs .btn {
        min-width: 160px;
        padding: 14px 20px;
    }
}

@media (max-width: 768px) {
    #batchCallsSection .page-header {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    #batchCallsSection .page-header h1 {
        font-size: 1.6rem;
    }
    
    #batchCallsSection .page-header p {
        font-size: 0.95rem;
    }
    
    .batch-nav-tabs {
        flex-direction: column;
    }
    
    .batch-nav-tabs .btn {
        max-width: 100%;
        width: 100%;
    }
    
    #batchCallsSection .batch-card {
        padding: 20px;
        border-radius: 15px;
    }
    
    #batchCallsSection .batch-card h3 {
        font-size: 1.2rem;
        word-wrap: break-word;
    }
    
    #batchCallsSection .form-group {
        margin-bottom: 20px;
    }
    
    #batchCallsSection .form-group label {
        display: block;
        margin-bottom: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    #batchCallsSection .form-control {
        width: 100%;
        box-sizing: border-box;
    }
    
    #batchCallsSection .batch-table-container {
        margin: 0 -20px;
        border-radius: 0;
    }
    
    /* Mobile Cards View for Table */
    #batchCallsSection .batch-mobile-card {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 15px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    #batchCallsSection .batch-mobile-card .card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 15px;
        gap: 10px;
    }
    
    #batchCallsSection .batch-mobile-card .card-title {
        font-size: 1.15rem;
        font-weight: 700;
        color: #fff;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    #batchCallsSection .batch-mobile-card .card-details {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 15px;
    }
    
    #batchCallsSection .batch-mobile-card .detail-item {
        background: rgba(0, 0, 0, 0.2);
        padding: 10px;
        border-radius: 8px;
    }
    
    #batchCallsSection .batch-mobile-card .detail-label {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.85);
        text-transform: uppercase;
        margin-bottom: 4px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    #batchCallsSection .batch-mobile-card .detail-value {
        font-size: 0.95rem;
        color: #fff;
        font-weight: 600;
    }
    
    #batchCallsSection .batch-mobile-card .card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    #batchCallsSection .batch-mobile-card .card-actions .btn {
        flex: 1;
        min-width: calc(50% - 4px);
        font-size: 0.8rem;
        padding: 10px;
    }
    
    #batchCallsSection .batch-info-grid {
        grid-template-columns: 1fr;
    }
    
    #batchCallsSection .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #batchCallsSection .stat-card .stat-value {
        font-size: 2rem;
    }
    
    #batchCallsSection .help-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    #batchCallsSection {
        padding: 10px;
    }
    
    #batchCallsSection .page-header h1 {
        font-size: 1.4rem;
    }
    
    #batchCallsSection .batch-card {
        padding: 15px;
    }
    
    #batchCallsSection .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    #batchCallsSection .form-control {
        padding: 12px 15px;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    #batchCallsSection textarea.form-control {
        min-height: 120px;
        resize: vertical;
    }
    
    #batchCallsSection input.form-control {
        max-width: 100%;
    }
    
    .modal-overlay .modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    #batchCallsSection .batch-mobile-card .card-details {
        grid-template-columns: 1fr;
    }
    
    #batchCallsSection .batch-mobile-card .card-actions .btn {
        min-width: 100%;
    }
}

/* ========================================
   RECIPIENT CARDS - SAME STYLE AS BATCH CARDS
   ======================================== */

/* Recipient card styling - matching batch card style */
#batchCallsSection .recipient-card {
    background: linear-gradient(145deg, rgba(30, 40, 60, 0.95) 0%, rgba(20, 30, 50, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#batchCallsSection .recipient-card.clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
    border-color: rgba(0, 188, 212, 0.4);
}

#batchCallsSection .recipient-card.clickable {
    cursor: pointer;
}

/* Recipients table - matching dark theme */
#batchCallsSection .recipients-table {
    background: linear-gradient(145deg, rgba(30, 40, 60, 0.95) 0%, rgba(20, 30, 50, 0.98) 100%);
    border-radius: 15px;
    overflow: hidden;
}

#batchCallsSection .recipients-table thead {
    background: linear-gradient(90deg, rgba(0, 150, 167, 0.3) 0%, rgba(0, 188, 212, 0.2) 100%);
}

#batchCallsSection .recipients-table .clickable-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

#batchCallsSection .recipients-table .clickable-row:hover {
    background: rgba(0, 188, 212, 0.15);
    box-shadow: inset 0 0 20px rgba(0, 188, 212, 0.1);
}

#batchCallsSection .recipients-table .clickable-row:hover td {
    color: #fff;
}

/* Status badge for 'done' status */
#batchCallsSection .status-badge.done {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.2) 100%);
    color: #81C784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Status badge for 'processing' or 'initiated' status */
#batchCallsSection .status-badge.processing,
#batchCallsSection .status-badge.initiated {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2) 0%, rgba(0, 150, 167, 0.2) 100%);
    color: #4DD0E1;
    border: 1px solid rgba(0, 188, 212, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

/* Compact status badges for recipients */
#batchCallsSection .recipient-card .status-badge {
    font-size: 0.7rem;
    padding: 5px 10px;
}

/* ========================================
   HELP SECTION - SAME STYLE AS BATCH CARD
   ======================================== */

#batchCallsSection .batch-card.help-section {
    margin-top: 30px;
}

/* Help section text colors are defined inline in HTML with specific dark colors
   No CSS rules here to avoid conflicts */

/* Mobile fixes for help section */
@media (max-width: 768px) {
    /* Modern help box responsive */
    #batchCallsSection .batch-card.help-section + div[style*="linear-gradient"] {
        padding: 20px 15px !important;
    }
    
    /* Grid cards stack on mobile */
    #batchCallsSection div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    #batchCallsSection .batch-card.help-section {
        padding: 20px 15px;
    }
    
    #batchCallsSection .batch-card.help-section ul,
    #batchCallsSection .batch-card.help-section ol {
        margin-left: 25px;
        padding-right: 10px;
    }
    
    #batchCallsSection .batch-card.help-section li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.8;
        margin: 12px 0;
    }
    
    #batchCallsSection .batch-card.help-section pre {
        font-size: 0.8rem;
        padding: 12px;
        overflow-x: auto;
        white-space: pre-wrap;
        word-break: break-all;
    }
    
    #batchCallsSection .batch-card.help-section code {
        font-size: 0.85em;
        padding: 2px 6px;
        word-break: break-word;
    }
    
    #batchCallsSection .batch-card.help-section h4 {
        font-size: 1.1rem;
        word-wrap: break-word;
    }
    
    #batchCallsSection .batch-card.help-section p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    #batchCallsSection .batch-card.help-section {
        padding: 15px 10px;
    }
    
    #batchCallsSection .batch-card.help-section ul,
    #batchCallsSection .batch-card.help-section ol {
        margin-left: 20px;
        padding-right: 5px;
    }
    
    #batchCallsSection .batch-card.help-section li {
        font-size: 0.9rem;
    }
    
    #batchCallsSection .batch-card.help-section pre {
        font-size: 0.75rem;
        padding: 10px;
    }
}

/* ========================================
   TEMPLATE MODALS
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.2s ease-in-out;
}

.modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    color: #00BCD4;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
}

.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-content .form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

.modal-content .form-control:focus {
    outline: none;
    border-color: #00BCD4;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
}

.modal-content textarea.form-control {
    resize: vertical;
    font-family: monospace;
    min-height: 100px;
}

.modal-content select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300BCD4' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.modal-content small {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.modal-content .btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.modal-content .btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.modal-content .btn-success:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

.modal-content .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-content .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.modal-content .btn-info {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    color: white;
}

.modal-content .btn-info:hover {
    background: linear-gradient(135deg, #0097A7 0%, #00838F 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 188, 212, 0.4);
}

.close-modal {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    transform: rotate(90deg);
}

/* Template Card Hover Effects */
.template-card {
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.3);
}

/* Scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 188, 212, 0.5);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 188, 212, 0.7);
}

/* Mobile Responsiveness for Modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 95vh;
    }
    
    .modal-content h3 {
        font-size: 1.3rem;
    }
    
    .modal-content .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .template-card {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        padding: 15px;
    }
    
    .modal-content h3 {
        font-size: 1.2rem;
    }
    
    .modal-content .form-control {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

/* ========================================
   SPECIFIC TEXT CONTRAST FOR DARK BACKGROUNDS
   ======================================== */

/* Page header has dark gradient background - needs white text */
#batchCallsSection .page-header h1,
#batchCallsSection .page-header p {
    color: #ffffff;
}

/* Batch cards NOW have LIGHT background - need dark text */
#batchCallsSection .batch-card {
    color: #1a1a1a;
}

#batchCallsSection .batch-card h3,
#batchCallsSection .batch-card h4,
#batchCallsSection .batch-card h5 {
    color: #1a1a1a;
    font-weight: 700;
}

/* Help section inherits dark text from .batch-card - no overrides needed */

/* REMOVED GLOBAL WHITE TEXT RULES - they were overriding light card colors!
   Now only specific dark-background sections get white text */

/* ========================================
   CREATE VIEW SPECIFIC (Light Background)
   ======================================== */

/* Create view has light/white background, needs dark text */
#batchCreateView label {
    color: #333 !important;  /* Dark text on light background */
}

#batchCreateView small {
    color: #666 !important;  /* Medium gray for secondary text */
}

#batchCreateView .form-control {
    color: #333;
    background: #ffffff;
    border: 1px solid #ddd;
}

#batchCreateView .form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Config form (Step 3) - LIGHT background to match design */
#batchConfigForm {
    padding: 30px;
    border-radius: 20px;
    margin-top: 30px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.95));
    border: 2px solid rgba(0, 188, 212, 0.3);
    box-shadow: 0 10px 40px rgba(0, 188, 212, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

#batchConfigForm:hover {
    box-shadow: 0 15px 50px rgba(0, 188, 212, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#batchConfigForm label {
    color: #1a1a1a !important;
    font-weight: 700;
    font-size: 1rem;
}

#batchConfigForm small {
    color: #555 !important;
    line-height: 1.6;
    font-size: 0.9rem;
}

#batchConfigForm code {
    background: rgba(0, 188, 212, 0.12) !important;
    color: #006064 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    font-family: 'Courier New', monospace !important;
}

#batchConfigForm strong {
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

#batchConfigForm .form-control {
    color: #1a1a1a !important;
    background: #ffffff !important;
    border: 2px solid rgba(0, 188, 212, 0.25) !important;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#batchConfigForm .form-control::placeholder {
    color: rgba(0, 0, 0, 0.35) !important;
    font-style: italic;
}

#batchConfigForm .form-control:focus {
    border-color: #00BCD4 !important;
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.12) !important;
    outline: none;
}



/* ========================================
   ALERT MESSAGES (showAlert function)
   ======================================== */

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    margin: 10px 0;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(76, 175, 80, 0.15) !important;
    border-left: 4px solid #2E7D32 !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
    color: #1b5e20 !important;
}

.alert-error {
    background: rgba(244, 67, 54, 0.15) !important;
    border-left: 4px solid #d32f2f !important;
    border-color: rgba(244, 67, 54, 0.3) !important;
    color: #b71c1c !important;
}

.alert-info,
.alert-warning {
    background: rgba(255, 152, 0, 0.15) !important;
    border-left: 4px solid #f57c00 !important;
    border-color: rgba(255, 152, 0, 0.3) !important;
    color: #e65100 !important;
}
