
        
        .mail-container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
        }
        
        
        h1 {
            margin-bottom: 10px;
        }
        
        .description {
            font-size: 1.1em;
            opacity: 0.9;
        }
        
        .filters {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
            gap: 10px;
        }
        
        .filter-btn {
            padding: 10px 20px;
            background-color: #e9ecef;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }
        
        .filter-btn.active, .filter-btn:hover {
            background-color: #0b1734;
            color: white;
        }
        
        .form-container {
            background-color: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        }
        
        .instructions {
            background-color: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 25px;
        }
        
        .instructions h3 {
            margin-bottom: 10px;
            color: #495057;
        }
        
        .instructions ul {
            padding-left: 20px;
        }
        
        .instructions li {
            margin-bottom: 5px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #495057;
        }
        
        input[type="text"], select {
            width: 100%;
            padding: 12px;
            border: 1px solid #ced4da;
            border-radius: 5px;
            font-size: 16px;
        }
        
        .to-wrapper {
            position: relative;
        }
        
        .search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #ced4da;
            border-top: none;
            border-radius: 0 0 5px 5px;
            max-height: 200px;
            overflow-y: auto;
            z-index: 10;
            display: none;
        }
        
        .search-result-item {
            padding: 10px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .search-result-item:hover {
            background-color: #f8f9fa;
        }
        
        .search-result-item .email {
            font-size: 0.9em;
            color: #6c757d;
        }
        
        .selected-emails {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }
        
        .email-tag {
            background-color: #e9ecef;
            padding: 5px 10px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .email-tag button {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 16px;
            color: #6c757d;
        }
        
        .editor-controls {
            display: flex;
            gap: 5px;
            margin-bottom: 5px;
        }
        
        .format-btn {
            padding: 5px 10px;
            background-color: #f8f9fa;
            border: 1px solid #ced4da;
            border-radius: 3px;
            cursor: pointer;
        }
        
        .format-btn:hover {
            background-color: #e9ecef;
        }
        
        .editor {
            min-height: 200px;
            border: 1px solid #ced4da;
            border-radius: 5px;
            padding: 12px;
            margin-bottom: 10px;
            outline: none;
        }
        
        .submit-btn {
            width: 100%;
            padding: 12px;
            background: #0b1734;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: opacity 0.3s;
        }
        
        .submit-btn:hover {
            opacity: 0.9;
        }
        
        .status-message {
            margin-top: 20px;
            padding: 10px;
            border-radius: 5px;
            text-align: center;
        }
        
        .success {
            background-color: #d4edda;
            color: #155724;
        }
        
        .error {
            background-color: #f8d7da;
            color: #721c24;
        }
        
        .loading {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

.select-all-btn {
  padding: 8px 16px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

#selectAllCount{
color: #ffffff;
}

.select-all-btn:hover {
  background-color: #218838;
}

.select-all-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.select-all-container {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

/* Preview Section Styles */
.preview-section {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
  }
  
  .preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
  }
  
  .preview-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
  }
  
  .preview-controls {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .preview-btn {
    padding: 6px 12px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
  }
  
  .preview-btn:hover {
    background: #005a87;
  }
  
  #previewCount {
    font-size: 12px;
    color: #666;
  }
  
  .preview-container {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
  }
  
  .preview-placeholder {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
  }
  
  .preview-grid {
    display: grid;
    gap: 8px;
  }
  
  .preview-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
  }
  
  .preview-item:hover {
    border-color: #007cba;
  }
  
  .preview-item.selected {
    background: #e8f4fd;
    border-color: #007cba;
  }
  
  .preview-checkbox {
    margin-right: 12px;
  }
  
  .preview-checkbox input[type="checkbox"] {
    margin: 0;
  }
  
  .preview-content {
    flex: 1;
  }
  
  .preview-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
  }
  
  .preview-email {
    color: #666;
    font-size: 14px;
  }

  #tableFilter{
    padding: 7px 8px;
    background-color: #ffffff;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.32), 0px 0px 2px rgba(0, 0, 0, 0.08), 0px 1px 3px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;  
  }

    #toSearch{
    padding: 7px 8px;
    background-color: #ffffff;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.32), 0px 0px 2px rgba(0, 0, 0, 0.08), 0px 1px 3px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;  
  }

  #applyFilters.submit-btn{

    width: 5%;
    padding: 7px 8px;
    justify-content: space-between;
    background: #0b1734;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
  }

    #resetFilters.submit-btn{
    width: 5%;
    padding: 7px 8px;
    justify-content: space-between;
    background: #0b1734;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
  }

.pagination-container {
    width: 100%;
    position: sticky;
    left: 0;
    bottom: 0;
    background: white;
    border-top: 1px solid #ddd;
  }
  
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
  }
  
  .pagination button {
    padding: 8px;
    border: none;
    color: black;
    font-size: 14px;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.32), 0px 0px 2px rgba(0, 0, 0, 0.08),
      0px 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease-in-out;
  }

  .pagination button:hover {
    background-color: #e9ecef;
  }
  .pagination-btn {
    padding: 5px 10px;
    cursor: pointer;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    border-radius: 4px;
  }
  .pagination-btn:hover:not(:disabled) {
    background-color: #e8e8e8;
  }
  .pagination-info {
    margin: 0 15px;
    font-size: 0.9em;
  }