/**
 * 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(30, 40, 60, 0.95) 0%, rgba(20, 30, 50, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

#batchCallsSection .batch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

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

#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;
    }
    
    #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;
    }
    
    .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;
}

#batchCallsSection .batch-card.help-section p {
    color: rgba(255, 255, 255, 0.8);
    margin: 15px 0;
}

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

#batchCallsSection .batch-card.help-section li {
    color: rgba(255, 255, 255, 0.75);
    margin: 8px 0;
    line-height: 1.6;
}

#batchCallsSection .batch-card.help-section code {
    background: rgba(0, 188, 212, 0.2);
    color: #4DD0E1;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
}

#batchCallsSection .batch-card.help-section strong {
    color: #fff;
}
